mirror of
https://github.com/matrix-construct/construct
synced 2024-11-16 15:00:51 +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;
|
out << std::endl;
|
||||||
_print_sst_info_header(out);
|
_print_sst_info_header(out);
|
||||||
const db::database::sst::info::vector v{c};
|
db::database::sst::info::vector vector{c};
|
||||||
for(const auto &info : v)
|
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);
|
_print_sst_info(out, info);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue