Skip to content

Commit

Permalink
iOS: alphabetically sort .love file list.
Browse files Browse the repository at this point in the history
Fixes #1984.
  • Loading branch information
slime73 committed Nov 18, 2023
1 parent 81393b9 commit 99e7022
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions changes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 2 additions & 0 deletions src/common/ios.mm
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,8 @@ - (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)
[paths addObject:path.stringByDeletingLastPathComponent];
}

[paths sortUsingSelector:@selector(localizedCaseInsensitiveCompare:)];

return paths;
}

Expand Down

0 comments on commit 99e7022

Please sign in to comment.