From aba03c966ef5fce5fa42152f34d9546aaa6ede37 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Wed, 21 Jun 2023 19:41:31 +0200 Subject: [PATCH] pveum: list tfa: sort by user ID Signed-off-by: Thomas Lamprecht --- src/PVE/CLI/pveum.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PVE/CLI/pveum.pm b/src/PVE/CLI/pveum.pm index 098b041..9e64709 100755 --- a/src/PVE/CLI/pveum.pm +++ b/src/PVE/CLI/pveum.pm @@ -187,7 +187,7 @@ __PACKAGE__->register_method({ } else { my $result = $tfa_cfg->api_list_tfa('', 1); my $nl = ''; - for my $entry (@$result) { + for my $entry (sort { $a->{userid} cmp $b->{userid} } @$result) { print "${nl}$entry->{userid}:\n"; format_tfa_entries($entry->{entries}, ' '); $nl = "\n"; -- 2.39.2