Fix local saves being sorted Z-A instead of A-Z

This commit is contained in:
jacob1 2024-03-23 23:41:41 -04:00
parent a0ba5f5398
commit 502df57cae
No known key found for this signature in database
GPG Key ID: 4E58A32D510E1995

View File

@ -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)