aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/views/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyaggr3g470r/views/views.py')
-rw-r--r--pyaggr3g470r/views/views.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pyaggr3g470r/views/views.py b/pyaggr3g470r/views/views.py
index 58b3e7f0..f064236a 100644
--- a/pyaggr3g470r/views/views.py
+++ b/pyaggr3g470r/views/views.py
@@ -264,8 +264,10 @@ def render_home(filters=None, head_titles=None,
sort_param = {"feed": Feed.title.desc(),
"date": Article.date.desc(),
+ "article": Article.title.desc(),
"-feed": Feed.title.asc(),
"-date": Article.date.asc(),
+ "-article": Article.title.asc()
}.get(sort_, Article.date.desc())
articles = arti_contr.read(**filters).join(Article.source). \
bgstack15