alphabetically sort list of files in a dir

This commit is contained in:
brunoherbelin
2021-04-26 09:22:22 +02:00
parent 1b6b2ecd4d
commit d89290f9b2

View File

@@ -4,6 +4,7 @@
#include <fstream>
#include <iomanip>
#include <chrono>
#include <algorithm>
using namespace std;
@@ -301,6 +302,8 @@ list<string> SystemToolkit::list_directory(const string& path, const string& fil
closedir (dir);
}
ls.sort();
return ls;
}