Slimelite BBS

Sort code

Back to AMY_TECH

From Paul Davis · 1996-04-02 07:29 · #71019 in AMY_TECH

Hi,

Anyone know any good, fast sort routines? I currently use this type (1 of only two ways I know) ...

do a = 1 to 99
  do b = (a+1) to 100
    if num.a > num.b then swap
  end b
end a

which is pretty good and obviously speeds up the further into the loop but I want one that's faster as when the numbers get to about 200, in ARexx things tend to slow done with this sort code and I need something faster.

Any ideas anyone?


 >>    PauL

... Dangerous exercise: jumping to conclusions
--- Spot 1.3a #1413
 * Origin: The Backyard BBS 0181-424-2065 (2:254/255.20)