Not only because <=> is correct, but using 'cmp' also has
the side effect that it adds a string version to the
variable and the API's json output turns into a string as
well, and this only happens once a task has completed
(while it's an integer while it's still running...)
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
- @ta = sort { $b->{starttime} cmp $a->{starttime} } @ta;
+ @ta = sort { $b->{starttime} <=> $a->{starttime} } @ta;
my $save = defined($new_upid);
my $save = defined($new_upid);