diff options
| author | Paul Buetow <paul@buetow.org> | 2020-07-15 08:28:21 +0100 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2020-07-15 08:28:21 +0100 |
| commit | e6e3b27756974ad7255345c98260918a96f3a476 (patch) | |
| tree | d56e404ca6724a64116aa10cb147161f8e7fcff2 /sort/selection.go | |
| parent | 73ca4d0b86036a41b452212702e6aa669888d740 (diff) | |
fix shell sort
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 2782460..d084fc0 100644 --- a/sort/selection.go +++ b/sort/selection.go @@ -9,7 +9,7 @@ func Selection(a []ds.Comparer) []ds.Comparer { for i := 0; i < length; i++ { min := i for j := i + 1; j < length; j++ { - if a[min].HigherThan(a[j]) { + if a[min].Higher(a[j]) { min = j } } |
