From d15b21ba0206652d4076dd94d3f68fcf4832fd7a Mon Sep 17 00:00:00 2001 From: pcanterino <> Date: Wed, 21 Jul 2004 19:50:41 +0000 Subject: [PATCH 1/1] Files and directories are now sorted case-insensitively --- modules/File/Access.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.34.1