Sorts a slice using a custom comparison function.
slices.SortFunc([]int{3, 1, 2}, func(a, b int) int { return a - b })