GoSliceslices.Sort

Sorts a slice of ordered values in ascending order. (Go 1.21+)

문법

slices.Sort(x []E)