From 231a8c2fd39571dacd0921c4b8b3ec03a39f394c Mon Sep 17 00:00:00 2001 From: Axel Burri Date: Wed, 20 May 2015 20:27:45 +0200 Subject: [PATCH] btrbk: cosmetics: sort deleted subvolumes ascending in backup summary (instead of descending) --- btrbk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/btrbk b/btrbk index aaf42d8..2b4e60c 100755 --- a/btrbk +++ b/btrbk @@ -2108,7 +2108,7 @@ MAIN: } push @subvol_out, "+++ $config_subvol->{SNAPSHOT}->{PRINT}" if($config_subvol->{SNAPSHOT}); if($config_subvol->{SUBVOL_DELETED}) { - push @subvol_out, "--- $_->{PRINT}" foreach(sort { $b->{PATH} cmp $a->{PATH} } @{$config_subvol->{SUBVOL_DELETED}}); + push @subvol_out, "--- $_->{PRINT}" foreach(sort { $a->{PATH} cmp $b->{PATH} } @{$config_subvol->{SUBVOL_DELETED}}); } foreach my $config_target (@{$config_subvol->{TARGET}}) { @@ -2122,7 +2122,7 @@ MAIN: } if($config_target->{SUBVOL_DELETED}) { - push @subvol_out, "--- $_->{PRINT}" foreach(sort { $b->{PATH} cmp $a->{PATH} } @{$config_target->{SUBVOL_DELETED}}); + push @subvol_out, "--- $_->{PRINT}" foreach(sort { $a->{PATH} cmp $b->{PATH} } @{$config_target->{SUBVOL_DELETED}}); } if($config_target->{ABORTED}) {