mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-13 11:54:04 +02:00
Fix local saves being sorted Z-A instead of A-Z
This commit is contained in:
@@ -39,7 +39,7 @@ class LoadFilesTask: public Task
|
|||||||
bool doWork() override
|
bool doWork() override
|
||||||
{
|
{
|
||||||
std::vector<ByteString> files = Platform::DirectorySearch(directory, search, { ".cps" });
|
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);
|
notifyProgress(-1);
|
||||||
for(std::vector<ByteString>::iterator iter = files.begin(), end = files.end(); iter != end; ++iter)
|
for(std::vector<ByteString>::iterator iter = files.begin(), end = files.end(); iter != end; ++iter)
|
||||||
|
Reference in New Issue
Block a user