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

View file

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