Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/main'
Browse files Browse the repository at this point in the history
* upstream/main:
  Fix unstable emoji sort (go-gitea#22346)
  • Loading branch information
zjjhot committed Jan 6, 2023
2 parents e1ec9b2 + f74293f commit 1d1ddbc
Show file tree
Hide file tree
Showing 2 changed files with 1,517 additions and 1,513 deletions.
4 changes: 4 additions & 0 deletions build/generate-emoji.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,10 @@ func generate() ([]byte, error) {
}
}

sort.Slice(data, func(i, j int) bool {
return data[i].Aliases[0] < data[j].Aliases[0]
})

// add header
str := replacer.Replace(fmt.Sprintf(hdr, gemojiURL, data))

Expand Down
Loading

0 comments on commit 1d1ddbc

Please sign in to comment.