UX: Order custom emojis by name.

This commit is contained in:
Guo Xiang Tan 2017-03-30 13:24:18 +08:00
parent a818fa9831
commit 99abbc2e2d

View File

@ -92,7 +92,7 @@ class Emoji
def self.load_custom
result = []
CustomEmoji.all.each do |emoji|
CustomEmoji.order(:name).all.each do |emoji|
result << Emoji.new.tap do |e|
e.name = emoji.name
e.url = emoji.upload.url