What is the difference between sort.Slice and sort.SliceStable

后端 未结 0 1243
猫巷女王i
猫巷女王i 2020-12-02 05:33

According to the docs https://golang.org/pkg/sort/#Slice, sort.Slice is not guaranteed to be stable. What makes it unstable and when would I look to use sort.SliceStable ins

相关标签:
回答
  • 消灭零回复
提交回复
热议问题