Case insensitive sort of app list, if sorting by name.
This commit is contained in:
parent
7ca6db9555
commit
1083f57ec1
@ -416,6 +416,10 @@ public class AppProvider extends FDroidProvider {
|
|||||||
throw new UnsupportedOperationException("Invalid URI for app content provider: " + uri);
|
throw new UnsupportedOperationException("Invalid URI for app content provider: " + uri);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (AppProvider.DataColumns.NAME.equals(sortOrder)) {
|
||||||
|
sortOrder = " lower( " + sortOrder + " ) ";
|
||||||
|
}
|
||||||
|
|
||||||
for (String field : projection) {
|
for (String field : projection) {
|
||||||
if (field.equals(DataColumns._COUNT)) {
|
if (field.equals(DataColumns._COUNT)) {
|
||||||
projection = new String[] { "COUNT(*) AS " + DataColumns._COUNT };
|
projection = new String[] { "COUNT(*) AS " + DataColumns._COUNT };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user