mirror of
https://github.com/matrix-construct/construct
synced 2025-01-15 17:16:49 +01:00
modules/console: Sort files by SST number. (#13)
This commit is contained in:
parent
198fbfa20b
commit
64a5eec565
1 changed files with 7 additions and 1 deletions
|
@ -3788,11 +3788,17 @@ try
|
||||||
|
|
||||||
if(colname == "*")
|
if(colname == "*")
|
||||||
{
|
{
|
||||||
const auto fileinfos
|
auto fileinfos
|
||||||
{
|
{
|
||||||
db::database::sst::info::vector(database)
|
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);
|
_print_sst_info_header(out);
|
||||||
for(const auto &fileinfo : fileinfos)
|
for(const auto &fileinfo : fileinfos)
|
||||||
_print_sst_info(out, fileinfo);
|
_print_sst_info(out, fileinfo);
|
||||||
|
|
Loading…
Reference in a new issue