From 03c4353476a21677121f91ba12253ac0b509b28a Mon Sep 17 00:00:00 2001 From: Jason McBrayer Date: Thu, 16 Aug 2018 21:19:03 -0400 Subject: [PATCH] Sort the emoji guide --- brutaldon/templates/main/emoji.html | 2 +- brutaldon/views.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/brutaldon/templates/main/emoji.html b/brutaldon/templates/main/emoji.html index 80da6c1..80831f4 100644 --- a/brutaldon/templates/main/emoji.html +++ b/brutaldon/templates/main/emoji.html @@ -14,7 +14,7 @@
{% for emojo in emojos %} -
+

:{{ emojo.shortcode }}: diff --git a/brutaldon/views.py b/brutaldon/views.py index 5271993..552f28c 100644 --- a/brutaldon/views.py +++ b/brutaldon/views.py @@ -579,5 +579,5 @@ def emoji_reference(request): emojos = mastodon.custom_emojis() return render(request, 'main/emoji.html', {"fullbrutalism": fullbrutalism_p(request), - "emojos": emojos, + "emojos": sorted(emojos, key=lambda x: x['shortcode']), 'own_acct' : request.session['user']})