Imported Upstream version 3.3.1
[debian/amanda] / perl / Amanda / DB / Catalog.pm
index 162c731e87abd1fa2249f618a4827f02f138ea3a..0aa88fa420bd946b73c6666a4bb8278a607d92ef 100644 (file)
@@ -401,11 +401,10 @@ TODO: add_dump
 
 =cut
 
-use Amanda::Logfile qw( :constants match_disk match_host
-                       match_datestamp match_level );
+use Amanda::Logfile qw( :constants );
 use Amanda::Tapelist;
 use Amanda::Config qw( :init :getconf config_dir_relative );
-use Amanda::Util qw( quote_string weaken_ref );
+use Amanda::Util qw( quote_string weaken_ref match_disk match_host match_datestamp match_level);
 use File::Glob qw( :glob );
 use warnings;
 use strict;
@@ -903,7 +902,7 @@ sub sort_dumps {
        for my $key (@$keys) {
            my ($rev, $k) = ($key =~ /^(-?)(.*)$/);
 
-           if ($k =~ /^(nparts|level)$/) {
+           if ($k =~ /^(nparts|level|filenum)$/) {
                # compare dump components numerically
                $res = $a->{$k} <=> $b->{$k};
            } else { # ($k =~ /^(hostname|diskname|write_timestamp|dump_timestamp)$/)