sort local saves alphabetically

This commit is contained in:
krawthekrow 2017-12-19 21:14:24 -05:00 committed by jacob1
parent e956e7c5fd
commit 68af269b76

View File

@ -1,5 +1,6 @@
#include <sstream>
#include <iostream>
#include <algorithm>
#include "FileBrowserActivity.h"
#include "gui/interface/Label.h"
#include "gui/interface/Textbox.h"
@ -58,7 +59,7 @@ class LoadFilesTask: public Task
virtual bool doWork()
{
std::vector<std::string> files = Client::Ref().DirectorySearch(directory, search, ".cps");
sort(files.rbegin(), files.rend());
notifyProgress(-1);
for(std::vector<std::string>::iterator iter = files.begin(), end = files.end(); iter != end; ++iter)