Browse Source

iOS: alphabetically sort .love file list.

Fixes #1984.
Sasha Szpakowski 1 year ago
parent
commit
99e7022d2d
2 changed files with 5 additions and 0 deletions
  1. 3 0
      changes.txt
  2. 2 0
      src/common/ios.mm

+ 3 - 0
changes.txt

@@ -4,6 +4,9 @@ LOVE 11.5 [Mysterious Mysteries]
 Released: N/A
 
 * Added "LÖVE Loader" launcher on Android for easier loading of .love files.
+
+* Changed iOS game selector to alphabetically sort the list of .love files.
+
 * Fixed inconsistent and buggy behaviour of 'pairs' by updating LuaJIT.
 * Fixed "unexpected alignment" errors when running love on some 32 bit Linux systems.
 * Fixed running fused games on Windows when the executable has been code-signed.

+ 2 - 0
src/common/ios.mm

@@ -150,6 +150,8 @@ static NSArray *getLovesInDocuments()
 			[paths addObject:path.stringByDeletingLastPathComponent];
 	}
 
+	[paths sortUsingSelector:@selector(localizedCaseInsensitiveCompare:)];
+
 	return paths;
 }