aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/dirlist.cgi.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/dirlist.cgi.in b/scripts/dirlist.cgi.in
index 2949ebe..5cba1a8 100755
--- a/scripts/dirlist.cgi.in
+++ b/scripts/dirlist.cgi.in
@@ -277,9 +277,9 @@ sub right_dir {
}
closedir(DIR);
if ($SORT eq $SORT_SIZE) {
- @list = sort { $sizes{$b} <=> $sizes{$a} || $a <=> $b } @list;
+ @list = sort { $sizes{$b} <=> $sizes{$a} || $a cmp $b } @list;
} elsif ($SORT eq $SORT_TIME) {
- @list = sort { $ctimes{$b} <=> $ctimes{$a} || $a <=> $b } @list;
+ @list = sort { $ctimes{$b} <=> $ctimes{$a} || $a cmp $b } @list;
} else {
@list = sort @list;
}