]> git.p6c8.net - devedit.git/commitdiff
Files and directories are now sorted case-insensitively
authorpcanterino <>
Wed, 21 Jul 2004 19:50:41 +0000 (19:50 +0000)
committerpcanterino <>
Wed, 21 Jul 2004 19:50:41 +0000 (19:50 +0000)
modules/File/Access.pm

index 9dcd7e54677c9b1e45a25194746f9c8b46c527cf..2604d297f5bf4111410730cda61cb150a1ef839a 100644 (file)
@@ -7,7 +7,7 @@ package File::Access;
 # with only one command
 #
 # Author:        Patrick Canterino <patshaping@gmx.net>
-# 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;

patrick-canterino.de