]> git.phdru.name Git - phdru.name/cgi-bin/blog-ru/search-tags.git/commitdiff
Sort in reverse chronological order
authorOleg Broytman <phd@phdru.name>
Tue, 20 May 2014 06:15:11 +0000 (10:15 +0400)
committerOleg Broytman <phd@phdru.name>
Tue, 20 May 2014 06:15:11 +0000 (10:15 +0400)
tags.py

diff --git a/tags.py b/tags.py
index d8a14f497b7e18a76bc96b3df7a9be2a978d4c33..e1d5dd11eaa625d321a49cff9bbe0249feaffefc 100644 (file)
--- 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