0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-27 07:54:05 +01:00

modules/console: Sort files by SST number. (#13)

This commit is contained in:
Jason Volk 2019-08-08 19:58:44 -07:00
parent 198fbfa20b
commit 64a5eec565

View file

@ -3788,11 +3788,17 @@ try
if(colname == "*")
{
const auto fileinfos
auto fileinfos
{
db::database::sst::info::vector(database)
};
std::sort(begin(fileinfos), end(fileinfos), []
(const auto &a, const auto &b)
{
return a.name < b.name;
});
_print_sst_info_header(out);
for(const auto &fileinfo : fileinfos)
_print_sst_info(out, fileinfo);