From f01aafd283e0302d12ab7e7f31675c302bf5d798 Mon Sep 17 00:00:00 2001 From: Frantisek Sumsal Date: Mon, 14 Mar 2022 18:43:03 +0100 Subject: [PATCH] journal: make --reverse affect --list-boots Fixes: #16274 --- src/journal/journalctl.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/journal/journalctl.c b/src/journal/journalctl.c index 55c48eded58..63334c0ea4b 100644 --- a/src/journal/journalctl.c +++ b/src/journal/journalctl.c @@ -1471,6 +1471,9 @@ static int list_boots(sd_journal *j) { if (r < 0) return log_error_errno(r, "Failed to set JSON field name of column 0: %m"); + (void) table_set_sort(table, (size_t) 0); + (void) table_set_reverse(table, 0, arg_reverse); + i = 0; LIST_FOREACH(boot_list, id, all_ids) { r = table_add_many(table, -- 2.47.3