aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2003-02-07 15:06:15 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2003-02-07 15:06:15 +0000
commitc71b4fd2e8c7724405fbddf15996112338392fd8 (patch)
tree0cff08cbe207eb7e92cf2ad4945a21a873dd2a09 /scripts
parentfix indent (diff)
downloadw3m-c71b4fd2e8c7724405fbddf15996112338392fd8.tar.gz
w3m-c71b4fd2e8c7724405fbddf15996112338392fd8.zip
[w3m-dev 03736] dirlist sort
* scripts/dirlist.cgi.in (right_dir): use cmp for filename comparison From: Hiroyuki Ito <hito@crl.go.jp>
Diffstat (limited to '')
-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;
}