)} = split m{\s+}, $line;
push @rows, \%row;
}
- return { disk_usage => \@rows };
+ no warnings 'uninitialized';
+ return { disk_usage => [ sort {
+ ($a->{filesystem} cmp $b->{filesystem})
+ ||
+ ($a->{mount_point} cmp $b->{mount_point})
+ } @rows ] };
};
}