sort/ QuickSort.js

Copyright

2004 Rob Rohan (robr.nosp@m.ohan@gmai.nosp@m.l.com)

Summary
Do a quick sort on an array.

Functions

qsort

function qsort(arry,
left,
right)

Do a quick sort on an array.  Note this operates on the array directly.  Example usage

qsort(arry, 0, (arry.length-1) );

Parameters

arrythe array to sort
leftthe left lower limit (call with 0 for whole array)
rightthe right upper limit (call with array.length for whole array)
function qsort(arry,
left,
right)
Do a quick sort on an array.