Skip to content

Commit

Permalink
sort local saves alphabetically
Browse files Browse the repository at this point in the history
  • Loading branch information
krawthekrow authored and jacob1 committed Dec 20, 2017
1 parent e956e7c commit 68af269
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/gui/filebrowser/FileBrowserActivity.cpp
@@ -1,5 +1,6 @@
#include <sstream>
#include <iostream>
#include <algorithm>
#include "FileBrowserActivity.h"
#include "gui/interface/Label.h"
#include "gui/interface/Textbox.h"
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 68af269

Please sign in to comment.