changeset 1436:738a61cfcc63

fixed small glith with language sorting in advancedsearch
author Franz Pletz <fpletz AT franz-pletz DOT org>
date Mon, 21 Aug 2006 12:08:32 +0200
parents 17e40b5bf1df
children e60af4382f63
files MoinMoin/macro/AdvancedSearch.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/macro/AdvancedSearch.py	Mon Aug 21 03:34:27 2006 +0200
+++ b/MoinMoin/macro/AdvancedSearch.py	Mon Aug 21 12:08:32 2006 +0200
@@ -62,7 +62,8 @@
         u'<select name="language" size="1">',
         u'<option value="" selected>%s</option>' % _('any language'),
         ''.join(['<option value="%s">%s</option>' % lt for lt in
-            [(userlang, langs[userlang])] + sorted(langs.items())]),
+            [(userlang, langs[userlang])] + sorted(langs.items(),
+                key=lambda i: i[1])]),
         u'</select>',
     ])