Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/sorting/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Sorting AndroidSQLite:order by对国际字符进行排序_Sorting_Android_Sqlite - Fatal编程技术网

Sorting AndroidSQLite:order by对国际字符进行排序

Sorting AndroidSQLite:order by对国际字符进行排序,sorting,android,sqlite,Sorting,Android,Sqlite,我有一个android数据库,它有一个名为“name”的列。“name”列可以有国际字符。现在,当我查询这个数据库时,我想对name列进行排序。排序应考虑排序时的国际字符。我已经读到android有一个UNICODE collator,但我不能在查询中使用它。任何人都知道如何使用UNICODE collator。我真的可以使用UNICODE collator进行排序吗?任何提示都将不胜感激。请尝试以下内容: SELECT name FROM table ORDER BY name COLLATE

我有一个android数据库,它有一个名为“name”的列。“name”列可以有国际字符。现在,当我查询这个数据库时,我想对name列进行排序。排序应考虑排序时的国际字符。我已经读到android有一个UNICODE collator,但我不能在查询中使用它。任何人都知道如何使用UNICODE collator。我真的可以使用UNICODE collator进行排序吗?任何提示都将不胜感激。

请尝试以下内容:

SELECT name FROM table ORDER BY name COLLATE LOCALIZED

SELECT name FROM table ORDER BY name COLLATE UNICODE