0
0
Fork 0
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:
Jason Volk 2020-09-10 20:36:03 -07:00
parent ed6e2cff7a
commit 7493ec4f0e

View file

@ -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