Permalink
Browse files

Tweak template translation status sorting

This sorts by whether it needs a translation as well as the status
class. Thus the important stuff is on top, the less important stuff
is next, and the stuff that's all fine shows up last.
  • Loading branch information...
willkg committed Apr 17, 2012
1 parent 5646222 commit 87c514a8fb60e45f0c4a1da35853d67ce8917223
Showing with 2 additions and 1 deletion.
  1. +2 −1 apps/dashboards/readouts.py
@@ -479,7 +479,8 @@ def sort_and_truncate(self, rows, max):
# an empty string, then the equality is True and True in
# Python is 1 and 1 comes after 0... Therefore, False comes
# first in ordering.
- rows.sort(key=lambda row: (row['status'] == u'', row['title']))
+ rows.sort(key=lambda row: (
+ row['status'] == u'', row['status_class'], row['title']))
return rows[:max]

0 comments on commit 87c514a

Please sign in to comment.