summaryrefslogtreecommitdiffstats
path: root/lib/App
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2017-03-12 16:41:47 +0100
committerFlorian Pritz <bluewind@xinu.at>2017-03-12 16:41:47 +0100
commit18f143459991e44e10137fed501d162ae54274f8 (patch)
tree7a7afffc2187eb632ee2fbe1c7f0c9a3572e0d09 /lib/App
parent1d3ab4fee5071def96767a3808f7366e2d8570a1 (diff)
downloadApp-BorgRestore-18f143459991e44e10137fed501d162ae54274f8.tar.gz
App-BorgRestore-18f143459991e44e10137fed501d162ae54274f8.tar.xz
Fix sort order of detected archives
cmp sorts strings, <=> sorts numbers Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'lib/App')
-rw-r--r--lib/App/BorgRestore.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/App/BorgRestore.pm b/lib/App/BorgRestore.pm
index a7bb37b..cf64859 100644
--- a/lib/App/BorgRestore.pm
+++ b/lib/App/BorgRestore.pm
@@ -115,7 +115,7 @@ sub find_archives {
printf "\e[0;91mWarning:\e[0m Path '%s' not found in any archive.\n", $path;
}
- @ret = sort { $a->{modification_time} cmp $b->{modification_time} } @ret;
+ @ret = sort { $a->{modification_time} <=> $b->{modification_time} } @ret;
return \@ret;
}