web/box.py
changeset 10715 edd1ba9bb030
parent 10688 fa29f3628a1b
child 10907 9ae707db5265
--- a/web/box.py	Tue Sep 22 15:25:25 2015 +0200
+++ b/web/box.py	Fri Sep 18 18:01:31 2015 +0200
@@ -43,7 +43,7 @@
         actions_by_cat.setdefault(action.category, []).append(
             (action.title, action) )
     for key, values in actions_by_cat.items():
-        actions_by_cat[key] = [act for title, act in sorted(values)]
+        actions_by_cat[key] = [act for title, act in sorted(values, key=lambda x: x[0])]
     if categories_in_order:
         for cat in categories_in_order:
             if cat in actions_by_cat: