Skip to content

Commit

Permalink
Fix local saves being sorted Z-A instead of A-Z
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob1 committed Mar 24, 2024
1 parent a0ba5f5 commit 502df57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/filebrowser/FileBrowserActivity.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class LoadFilesTask: public Task
bool doWork() override
{
std::vector<ByteString> files = Platform::DirectorySearch(directory, search, { ".cps" });
std::sort(files.rbegin(), files.rend(), [](ByteString a, ByteString b) { return a.ToLower() < b.ToLower(); });
std::sort(files.rbegin(), files.rend(), [](ByteString a, ByteString b) { return a.ToLower() > b.ToLower(); });

notifyProgress(-1);
for(std::vector<ByteString>::iterator iter = files.begin(), end = files.end(); iter != end; ++iter)
Expand Down

0 comments on commit 502df57

Please sign in to comment.