mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2026-02-02 17:16:58 +00:00
rlottie/example: sort the resource list before displaying.
This commit is contained in:
committed by
Subhransu
parent
445cc344cb
commit
416e26cc07
@@ -18,6 +18,7 @@
|
||||
|
||||
#include "evasapp.h"
|
||||
#include <dirent.h>
|
||||
#include <algorithm>
|
||||
|
||||
static void
|
||||
_on_resize(Ecore_Evas *ee)
|
||||
@@ -132,6 +133,9 @@ EvasApp::jsonFiles(const std::string &dirName, bool recurse)
|
||||
}
|
||||
closedir(d);
|
||||
}
|
||||
|
||||
std::sort(result.begin(), result.end(), [](auto & a, auto &b){return a < b;});
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user