mirror of
https://github.com/iDvel/rime-ice.git
synced 2026-05-14 00:30:37 +08:00
* dict: 词汇更新 * dict: Validate entries for duplicates and sort order using Go * dict: close #977 --------- Co-authored-by: mirtlecn <mirtle.cn+github@outlook.com>
This commit is contained in:
@@ -123,7 +123,7 @@ func Sort(dictPath string, _type int) {
|
||||
return false
|
||||
})
|
||||
} else {
|
||||
sort.Slice(contents, func(i, j int) bool {
|
||||
sort.SliceStable(contents, func(i, j int) bool {
|
||||
if contents[i].code != contents[j].code {
|
||||
return contents[i].code < contents[j].code
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user