summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2010-06-17 19:50:39 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2010-06-17 19:50:39 +0200
commit86f66672c7fe554814e1463697b822a453eb04ff (patch)
tree8ede6754ba4ad21d643874eb2c46c4bfebae881d
parente87e368e39b77775065478825582e0265d0487f9 (diff)
case-insensitive sorting
-rwxr-xr-xbin/gen-xhtml-thumbnails2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/gen-xhtml-thumbnails b/bin/gen-xhtml-thumbnails
index ab5c43c..3391de7 100755
--- a/bin/gen-xhtml-thumbnails
+++ b/bin/gen-xhtml-thumbnails
@@ -81,7 +81,7 @@ closedir($dirhandle);
print "Generating thumbnails [ - cached | + generated ]\n";
-foreach my $file (sort(@files)) {
+foreach my $file (sort { lc($a) cmp lc($b) } @files) {
my $image = Image::Imlib2->load($file);
my $thumb;