This commit is contained in:
Kovid Goyal 2023-04-05 08:08:54 +05:30
parent 708267d229
commit 912aa17594
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -11,6 +11,7 @@ import (
"strings"
"golang.org/x/exp/maps"
"golang.org/x/exp/slices"
)
var _ = fmt.Print
@ -229,7 +230,7 @@ func NormalizeShortcut(spec string) string {
}
return ans
}, mods)
utils.Sort(mods, func(a, b string) bool { return a < b })
slices.Sort(mods)
return strings.Join(mods, "+") + "+" + key
}