From 9b8c0af63a87523185f2ddadf47454e051062040 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20=27Necoro=27=20Neumann?= Date: Mon, 18 Feb 2013 14:07:37 +0100 Subject: Sort categories by name not ID --- templates/pages/show.mako | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates') 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:

${get_d(e)}

% 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"> ${exp.day}.${exp.month}. -- ${exp.description}: ${exp.expense | eur} -- cgit v1.2.3