mirror of
https://github.com/tulir/gomuks.git
synced 2025-04-19 18:13:41 -05:00
web/emoji: pre-sort list
This commit is contained in:
parent
854a929c92
commit
b7975f1b4d
2 changed files with 14597 additions and 14594 deletions
File diff suppressed because it is too large
Load diff
|
@ -143,6 +143,9 @@ func main() {
|
|||
exerrors.PanicIfNotNil(json.NewDecoder(resp.Body).Decode(&emojis))
|
||||
vs := getVariationSequences()
|
||||
names := getEmojibaseNames()
|
||||
slices.SortFunc(emojis, func(a, b Emoji) int {
|
||||
return a.SortOrder - b.SortOrder
|
||||
})
|
||||
|
||||
data := &outputData{
|
||||
Emojis: make([]*outputEmoji, len(emojis)),
|
||||
|
|
Loading…
Add table
Reference in a new issue