Sorting algorithms/Quicksort: Difference between revisions

m
→‎{{header|Nim}}: Change comparison to system.cmp
m (→‎{{header|Nim}}: Omit new line)
m (→‎{{header|Nim}}: Change comparison to system.cmp)
Line 5,170:
var right = stop
while left <= right:
while cmp(a[left], pivot) < pivot0:
inc(left)
while cmp(a[right], pivot) > pivot0:
dec(right)
if left <= right: