From 6fa590b0a74c8328c37e1f25afcb2c64cf5fcedb Mon Sep 17 00:00:00 2001 From: Michiel Van Der Kolk Date: Fri, 8 Jul 2005 22:56:36 +0000 Subject: i wasn't fully awake o.o git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7080 a1c6a512-1295-4272-9138-f99709370657 --- tools/songdb.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/songdb.pl b/tools/songdb.pl index cfa18f221c..0377bfd9e6 100755 --- a/tools/songdb.pl +++ b/tools/songdb.pl @@ -665,7 +665,7 @@ if ($db) { #### Build filename offset info my $l=$fileindex; my %filenamepos; - for $f (sort keys %entries) { + for $f (sort {uc($a) cmp uc($b)} keys %entries) { $filenamepos{$f}= $l; $l += $fileentrysize; } @@ -710,7 +710,7 @@ if ($db) { #### TABLE of file names ### # path1 - for (sort {uc($a) cmp uc($b)} %entries) { + for $f (sort {uc($a) cmp uc($b)} %entries) { my $str = $f."\x00" x ($maxfilelen- length($f)); my $id3 = $entries{$f}; print DB $str; -- cgit v1.2.3