summaryrefslogtreecommitdiff
path: root/src/journal/journalctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/journal/journalctl.c')
-rw-r--r--src/journal/journalctl.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/journal/journalctl.c b/src/journal/journalctl.c
index 55c48eded5..63334c0ea4 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,