summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2013-02-18 14:07:37 +0100
committerRené 'Necoro' Neumann <necoro@necoro.net>2013-02-18 14:07:37 +0100
commit9b8c0af63a87523185f2ddadf47454e051062040 (patch)
treeede3da01b3625e3fc2a3537d91821bf1c8647647
parentf827738cae3fae577d0ea8cb079b0569db384d0a (diff)
downloadkosten-9b8c0af63a87523185f2ddadf47454e051062040.tar.gz
kosten-9b8c0af63a87523185f2ddadf47454e051062040.tar.bz2
kosten-9b8c0af63a87523185f2ddadf47454e051062040.zip
Sort categories by name not ID
Diffstat (limited to '')
-rw-r--r--templates/pages/show.mako2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/pages/show.mako b/templates/pages/show.mako
index f721f13..06a9915 100644
--- a/templates/pages/show.mako
+++ b/templates/pages/show.mako
@@ -4,7 +4,7 @@
% if len(exps) > 1:
<h2>${get_d(e)}</h2>
% endif
- % for c in e.catexps:
+ % for c in sorted(e.catexps, key = lambda c: c.cat.name):
<%self:detail name="${c.cat.name}" sum="${c.expense}" set="${c.all}" args="exp">
<a href=${"/edit/%s" % exp.id | url}>${exp.day}.${exp.month}. -- ${exp.description}: ${exp.expense | eur}</a>
</%self:detail>