From: Oleg Broytman Date: Tue, 20 May 2014 06:15:11 +0000 (+0400) Subject: Sort in reverse chronological order X-Git-Tag: v0.1~10 X-Git-Url: https://git.phdru.name/?p=phdru.name%2Fcgi-bin%2Fblog-ru%2Fsearch-tags.git;a=commitdiff_plain;h=e52513e74175e0b193cfcb34020bcd4b44620001 Sort in reverse chronological order --- diff --git a/tags.py b/tags.py index d8a14f4..e1d5dd1 100644 --- a/tags.py +++ b/tags.py @@ -61,5 +61,5 @@ def find_tags(tree): _posts.append(( '/'.join((year, month, day, post[0].replace('.tmpl', '.html'))), post[1])) - _posts.sort() + _posts.sort(reverse=True) return _posts