Sort the emoji guide

This commit is contained in:
Jason McBrayer 2018-08-16 21:19:03 -04:00
parent f2340864a4
commit 03c4353476
2 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@
<section>
<div class="columns is-9 is-variable is-centered is-multiline">
{% for emojo in emojos %}
<div class="column is-one-quarter">
<div class="column is-one-fifth">
<p class="level emoji-box">
<img alt="" class="level-item emoji" src="{{ emojo.url }}">
<span class="level-item">:{{ emojo.shortcode }}:</span>

View File

@ -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']})