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:
parent
198fbfa20b
commit
64a5eec565
1 changed files with 7 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue