From 174fe30ef26a44c8af1fa355496a79e3ed287dde Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Thu, 1 Nov 2007 10:20:41 +0000 Subject: [PATCH] Sprachen alphabetisch sortieren. --- SL/IC.pm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/SL/IC.pm b/SL/IC.pm index 8494152f8..5dfcad89f 100644 --- a/SL/IC.pm +++ b/SL/IC.pm @@ -1690,11 +1690,14 @@ sub retrieve_languages { $query = qq|SELECT l.id, l.description, tr.translation, tr.longdescription FROM language l - LEFT OUTER JOIN translation tr ON (tr.language_id = l.id) AND (tr.parts_id = ?)|; + LEFT OUTER JOIN translation tr ON (tr.language_id = l.id) AND (tr.parts_id = ?) + ORDER BY lower(l.description)|; @values = (conv_i($form->{id})); } else { - $query = qq|SELECT id, description FROM language|; + $query = qq|SELECT id, description + FROM language + ORDER BY lower(description)|; } my $languages = selectall_hashref_query($form, $dbh, $query, @values); -- 2.20.1