Fix unstable emoji sort (#22346)
Without the second sort every generate run produces a different result.
This commit is contained in:
parent
906d8cc5dc
commit
f74293f9c2
2 changed files with 1514 additions and 1510 deletions
|
@ -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))
|
||||
|
||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue