From 06bfe2a004c2edb105a3d026bf18d2ea068caaa4 Mon Sep 17 00:00:00 2001 From: Axel Burri Date: Wed, 23 Sep 2015 11:10:42 +0200 Subject: [PATCH] btrbk: bugfix: sort snapshots by cgen instead of PATH in action "tree" --- btrbk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/btrbk b/btrbk index cee2496..18d3ef2 100755 --- a/btrbk +++ b/btrbk @@ -1980,7 +1980,7 @@ MAIN: next if($config_subvol->{ABORTED}); my $svol = $config_subvol->{svol} || die; push @out, "|-- $svol->{PRINT}"; - foreach my $snapshot (sort { $a->{PATH} cmp $b->{PATH} } get_snapshot_children($sroot, $svol)) + foreach my $snapshot (sort { $a->{cgen} cmp $b->{cgen} } get_snapshot_children($sroot, $svol)) { if($snapshot->{cgen} == $svol->{gen}) { push @out, "| ^== $snapshot->{PATH}";