From: Moritz Bunkus Date: Thu, 1 Nov 2007 10:20:41 +0000 (+0000) Subject: Sprachen alphabetisch sortieren. X-Git-Tag: release-2.6.0beta1~440 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=174fe30ef26a44c8af1fa355496a79e3ed287dde;p=kivitendo-erp.git Sprachen alphabetisch sortieren. --- 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);