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 | |
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>
-rw-r--r-- | ChangeLog | 7 | ||||
-rwxr-xr-x | scripts/dirlist.cgi.in | 4 |
2 files changed, 8 insertions, 3 deletions
@@ -1,3 +1,8 @@ +2003-02-08 Hiroyuki Ito <hito@crl.go.jp> + + * [w3m-dev 03736] dirlist sort + * scripts/dirlist.cgi.in (right_dir): use cmp for filename comparison + 2003-02-07 Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp> * [w3m-dev 03735] Re: make error of checkType arg @@ -7118,4 +7123,4 @@ a * [w3m-dev 03276] compile error on EWS4800 * release-0-2-1 * import w3m-0.2.1 -$Id: ChangeLog,v 1.742 2003/02/06 17:21:42 ukai Exp $ +$Id: ChangeLog,v 1.743 2003/02/07 15:06:15 ukai Exp $ 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; } |