mirror of
https://github.com/matrix-construct/construct
synced 2024-12-27 07:54:05 +01:00
modules/console: Sort files list in db column summary cmd.
This commit is contained in:
parent
ed6e2cff7a
commit
7493ec4f0e
1 changed files with 8 additions and 2 deletions
|
@ -5434,8 +5434,14 @@ try
|
|||
{
|
||||
out << std::endl;
|
||||
_print_sst_info_header(out);
|
||||
const db::database::sst::info::vector v{c};
|
||||
for(const auto &info : v)
|
||||
db::database::sst::info::vector vector{c};
|
||||
std::sort(begin(vector), end(vector), []
|
||||
(const auto &a, const auto &b)
|
||||
{
|
||||
return a.created < b.created;
|
||||
});
|
||||
|
||||
for(const auto &info : vector)
|
||||
_print_sst_info(out, info);
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue