diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2003-02-07 15:06:15 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2003-02-07 15:06:15 +0000 |
commit | c71b4fd2e8c7724405fbddf15996112338392fd8 (patch) | |
tree | 0cff08cbe207eb7e92cf2ad4945a21a873dd2a09 /scripts/dirlist.cgi.in | |
parent | fix indent (diff) | |
download | w3m-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 'scripts/dirlist.cgi.in')
-rwxr-xr-x | scripts/dirlist.cgi.in | 4 |
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; } |