emoticons in dropdown menu not sorted properly

Bug description

The missing ability for emoticon pack designers to specify the sorting of their emoticons in the emoticons dropdown menu is ab bit anoying.

Given large emoticon sets containing all unicode emojis defined, this becomes more pressing, because emoticons having the same "type" (showing face smilies for example) are scattered all over the dropdown menu.

Steps to reproduce

Install Twemoji resized emoticon set, activate it and open the emoticons dropdown menu. The "face" emojis are scattered all over the dropdown menu.

Apply the fix provided in the attached patch and the emoticons are now sorted better.