mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-11 18:34:58 +01:00
alphabetically sort list of files in a dir
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user