diff --git a/src/pkg/sort/sort.go b/src/pkg/sort/sort.go index 4aa4ca6d7da..31da3c83d0d 100644 --- a/src/pkg/sort/sort.go +++ b/src/pkg/sort/sort.go @@ -191,7 +191,7 @@ func Sort(data Interface) { maxDepth++ } maxDepth *= 2 - quickSort(data, 0, data.Len(), maxDepth) + quickSort(data, 0, n, maxDepth) } func IsSorted(data Interface) bool {