From: pcanterino <> Date: Wed, 21 Jul 2004 19:50:41 +0000 (+0000) Subject: Files and directories are now sorted case-insensitively X-Git-Tag: version_2_0~9 X-Git-Url: https://git.p6c8.net/devedit.git/commitdiff_plain/d15b21ba0206652d4076dd94d3f68fcf4832fd7a?ds=inline Files and directories are now sorted case-insensitively --- diff --git a/modules/File/Access.pm b/modules/File/Access.pm index 9dcd7e5..2604d29 100644 --- a/modules/File/Access.pm +++ b/modules/File/Access.pm @@ -7,7 +7,7 @@ package File::Access; # with only one command # # Author: Patrick Canterino -# Last modified: 2004-02-06 +# Last modified: 2004-07-21 # use strict; @@ -50,7 +50,7 @@ sub dir_read($) # Sort the entries - @entries = sort(@entries); + @entries = sort {uc($a) cmp uc($b)} @entries; my @files; my @dirs;