mirror of
https://git.proxmox.com/git/pve-common
synced 2025-07-25 12:49:36 +00:00
cli: print_text_table: another fix for poperties without schema
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
This commit is contained in:
parent
ead1edfffd
commit
3c3d1e07c8
@ -495,7 +495,7 @@ sub print_text_table {
|
||||
printf $formatstring, map { $colopts->{$_}->{title} } @$props_to_print;
|
||||
|
||||
if (defined($sort_key)) {
|
||||
my $type = $returnprops->{$sort_key}->{type};
|
||||
my $type = $returnprops->{$sort_key}->{type} // 'string';
|
||||
if ($type eq 'integer' || $type eq 'number') {
|
||||
@$data = sort { $a->{$sort_key} <=> $b->{$sort_key} } @$data;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user