Skip to content

Commit

Permalink
Fix comparator when apps contain uppercase and lowercase
Browse files Browse the repository at this point in the history
  • Loading branch information
javiersantos committed Jun 5, 2015
1 parent 972ea4c commit b015098
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ protected Void doInBackground(Void... params) {
Collections.sort(packages, new Comparator<PackageInfo>() {
@Override
public int compare(PackageInfo p1, PackageInfo p2) {
return packageManager.getApplicationLabel(p1.applicationInfo).toString().compareTo(packageManager.getApplicationLabel(p2.applicationInfo).toString());
return packageManager.getApplicationLabel(p1.applicationInfo).toString().toLowerCase().compareTo(packageManager.getApplicationLabel(p2.applicationInfo).toString().toLowerCase());
}
});
for(PackageInfo packageInfo : packages) {
Expand Down

0 comments on commit b015098

Please sign in to comment.