From 99e7022d2d2227f66e210be4bad64f458f08f369 Mon Sep 17 00:00:00 2001 From: Sasha Szpakowski Date: Sat, 18 Nov 2023 13:44:41 -0400 Subject: [PATCH] iOS: alphabetically sort .love file list. Fixes #1984. --- changes.txt | 3 +++ src/common/ios.mm | 2 ++ 2 files changed, 5 insertions(+) diff --git a/changes.txt b/changes.txt index 02f285430..84a364eff 100644 --- a/changes.txt +++ b/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. diff --git a/src/common/ios.mm b/src/common/ios.mm index 4a89e9e4d..398d34962 100644 --- a/src/common/ios.mm +++ b/src/common/ios.mm @@ -150,6 +150,8 @@ - (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *) [paths addObject:path.stringByDeletingLastPathComponent]; } + [paths sortUsingSelector:@selector(localizedCaseInsensitiveCompare:)]; + return paths; }