diff --git a/app/assets/javascripts/discourse/lib/emoji/emoji.js.erb b/app/assets/javascripts/discourse/lib/emoji/emoji.js.erb index 9f82adde00f..582af89dfe2 100644 --- a/app/assets/javascripts/discourse/lib/emoji/emoji.js.erb +++ b/app/assets/javascripts/discourse/lib/emoji/emoji.js.erb @@ -166,7 +166,7 @@ Discourse.Emoji.search = function(term, options) { var maxResults = (options && options["maxResults"]) || -1; if (maxResults === 0) { return []; } - toSearch = toSearch || _.merge(_.keys(emojiHash), _.keys(extendedEmoji)); + toSearch = toSearch || _.union(_.keys(emojiHash), _.keys(extendedEmoji)).sort(); var i, results = [];