12 lines
164 B
Go
12 lines
164 B
Go
|
// +build go1.8
|
||
|
|
||
|
package main
|
||
|
|
||
|
import "sort"
|
||
|
|
||
|
func sortBySegment(s []string) {
|
||
|
sort.Slice(s, func(i, j int) bool {
|
||
|
return compareBySegment(s[i], s[j]) < 0
|
||
|
})
|
||
|
}
|