Permalink
Browse files

Merge pull request #7131 from JosJuice/android-case-insensitive-sort

Android: Use case insensitive sorting in game list
  • Loading branch information...
degasus committed Jun 21, 2018
2 parents 3816e82 + d1a8218 commit 235a01c976e7d47d1dc1d31f06cff1f159022534
@@ -118,7 +118,7 @@ protected void onHandleIntent(Intent intent)
private void updateGameFileArray()
{
GameFile[] gameFilesTemp = gameFileCache.getAllGames();
Arrays.sort(gameFilesTemp, (lhs, rhs) -> lhs.getTitle().compareTo(rhs.getTitle()));
Arrays.sort(gameFilesTemp, (lhs, rhs) -> lhs.getTitle().compareToIgnoreCase(rhs.getTitle()));
gameFiles.set(gameFilesTemp);
LocalBroadcastManager.getInstance(this).sendBroadcast(new Intent(BROADCAST_ACTION));
}

0 comments on commit 235a01c

Please sign in to comment.