]> ruin.nu Git - ndwebbie.git/commitdiff
Order case insensitive
authorMichael Andreen <harv@ruin.nu>
Tue, 18 Sep 2007 18:08:29 +0000 (20:08 +0200)
committerMichael Andreen <harv@ruin.nu>
Tue, 18 Sep 2007 18:08:29 +0000 (20:08 +0200)
NDWeb/Include.pm

index 434fc3137a73889d4ef285e842ea0608826b9ceb..5ef1dbae143a5330f86313ff3c14f8d1a1dc80ac 100644 (file)
@@ -66,7 +66,7 @@ sub alliances {
        my @alliances;
        $alliance = -1 unless defined $alliance;
        push @alliances,{Id => -1, Name => '&nbsp;', Selected => not $alliance};
-       my $query = $ND::DBH->prepare(q{SELECT id,name FROM alliances ORDER BY name});
+       my $query = $ND::DBH->prepare(q{SELECT id,name FROM alliances ORDER BY LOWER(name)});
        $query->execute;        
        while (my $ally = $query->fetchrow_hashref){
                push @alliances,{Id => $ally->{id}, Name => $ally->{name}, Selected => $alliance == $ally->{id}};