From c53112594e46bec8330c1f38be97e8edfb7b78e7 Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Sat, 6 Jun 2020 14:06:37 +0200 Subject: chg: [views] sort categories by number of unread articles for each category --- newspipe/templates/home.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/newspipe/templates/home.html b/newspipe/templates/home.html index 82787c25..126f3638 100644 --- a/newspipe/templates/home.html +++ b/newspipe/templates/home.html @@ -27,7 +27,7 @@ - {% for catid, nbunread in unread_by_cat.items() if catid %} + {% for catid, nbunread in unread_by_cat|dictsort(by='value')|reverse if catid %} +