diff options
Diffstat (limited to 'sort/selection.go')
| -rw-r--r-- | sort/selection.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sort/selection.go b/sort/selection.go index 66d221e..798fa27 100644 --- a/sort/selection.go +++ b/sort/selection.go @@ -10,7 +10,7 @@ func Selection(a ds.ArrayList) ds.ArrayList { for i := 0; i < length; i++ { min := i for j := i + 1; j < length; j++ { - if a[min].Higher(a[j]) { + if a[min] > a[j] { min = j } } |
