diff options
author | Rasmus Steinke <rasi@xssn.at> | 2017-08-07 23:11:52 +0200 |
---|---|---|
committer | Rasmus Steinke <rasi@xssn.at> | 2017-08-07 23:11:52 +0200 |
commit | b6ccf9b77d740afd48b471cef972a19c3e8b599d (patch) | |
tree | dc4baeb67a7e4e9385f7b023a0f04fbebd44d9ac | |
parent | e77c12f2b53c1012636a3c6c59ebd42f84aacb55 (diff) | |
download | perl-app-clerk-b6ccf9b77d740afd48b471cef972a19c3e8b599d.tar.gz perl-app-clerk-b6ccf9b77d740afd48b471cef972a19c3e8b599d.tar.xz |
dont run sort for latest view
-rwxr-xr-x | clerk | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -314,9 +314,10 @@ sub formatted_albums { for my $k (@skeys) { my @vals = ((map { $_ // "Unknown" } $uniq_albums{$k}->@{qw/AlbumArtist Date Album/}), $uniq_albums{$k}->{Dir}); my $strval = sprintf $fmtstr."%s\n", @vals; - @albums = sort @albums; + if (! $sorted) { + @albums = sort @albums; + } push @albums, $strval; - } return \@albums; |