I was reading the faq on quicksort. Would not this be every bit as fast? It does not require the user to enter a start and quit point, it is nicer code, and easier to understand. var is your array:
FOR a = UBOUND(var) TO 0 STEP -1
FOR b = 1 TO UBOUND(var)
IF var(b) > var(a) THEN SWAP var(a), var(b)
NEXT b
NEXT a
I whipped this up in a few seconds.
FOR a = UBOUND(var) TO 0 STEP -1
FOR b = 1 TO UBOUND(var)
IF var(b) > var(a) THEN SWAP var(a), var(b)
NEXT b
NEXT a
I whipped this up in a few seconds.