Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想按字母顺序对表格进行排序。我可以通过使用这个查询来做到这一点
return new CursorLoader(getActivity(),URI, null, null, null, COL_NAME);
但以这种方式,我以这种方式得到结果。
A B C D ...Z a b c ....z.
我希望我的 cursorLoder 返回A a B b C c ....Z z.
A a B b C c ....Z z.
谢谢。
return new CursorLoader(getActivity(),URI, null, null, null, COL_NAME + " COLLATE NOCASE");
利用:
COL_NAME + " collate nocase"