changeset 1437:e60af4382f63

i18n fix for sorted call
author Franz Pletz <fpletz AT franz-pletz DOT org>
date Mon, 21 Aug 2006 12:10:18 +0200
parents 738a61cfcc63
children 78f636ab2490
files MoinMoin/macro/AdvancedSearch.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/macro/AdvancedSearch.py	Mon Aug 21 12:08:32 2006 +0200
+++ b/MoinMoin/macro/AdvancedSearch.py	Mon Aug 21 12:10:18 2006 +0200
@@ -63,7 +63,7 @@
         u'<option value="" selected>%s</option>' % _('any language'),
         ''.join(['<option value="%s">%s</option>' % lt for lt in
             [(userlang, langs[userlang])] + sorted(langs.items(),
-                key=lambda i: i[1])]),
+                cmp=lambda i,j : cmp(i[1], j[1]))]),
         u'</select>',
     ])