summaryrefslogtreecommitdiff
path: root/sort/quick.go
diff options
context:
space:
mode:
authorPaul Buetow <pbuetow@mimecast.com>2020-08-08 13:27:43 +0100
committerPaul Buetow <pbuetow@mimecast.com>2020-08-08 13:27:43 +0100
commit44e930b71107310eae55060cf0aa2cac7089d239 (patch)
tree2b5c1cc62bc51a87d75393a80053ffe85db043cb /sort/quick.go
parent390333bb314f6cb25adc5716ea383112860ed342 (diff)
fortune not found
Quick commit
Diffstat (limited to 'sort/quick.go')
-rw-r--r--sort/quick.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/sort/quick.go b/sort/quick.go
index f58f046..5dbcfe5 100644
--- a/sort/quick.go
+++ b/sort/quick.go
@@ -31,13 +31,13 @@ func quickPartition(a ds.ArrayList, lo, hi int) int {
v := a[lo] // Partitioning item
for {
- for i++; a[i].Lower(v); i++ {
+ for i++; a[i] < v; i++ {
if i == hi {
break
}
}
- for j--; v.Lower(a[j]); j-- {
+ for j--; v < a[j]; j-- {
if j == lo {
break
}