Commit 6d56b5d6 authored by eric's avatar eric
Browse files

Sort metadata by date

Would be more classy if this was in the SPARQL directly
parent 96315469
......@@ -105,7 +105,7 @@ def query_results_to_template_articles(query_results):
template_articles.append(article)
return template_articles
return sorted(template_articles, key=lambda a: a['date'] if 'date' in a else 0, reverse=True)
class Command(BaseCommand):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment