★ APPLICATIONS ★ DIVERS ★ RSXSORT ★ |
RsxSort | Applications Divers |
If you need your arrays sorted in a tick then Lawrence Pozzani from Ipswich, Suffolk, has just the listing. The routine supplies you with a new command, |SORT. The routine is only a bubble sort, and is still relatively slow, however, it is still streets ahead of the Basic equivalent |SORT first array element, last array element, direction. For example. |SORT,a$(0),a$(100),0 Or |SORT,b$(0,0),b$(9, 9), -1The first and last elements may be reversed, it makes no difference to the running of the program |SORT, a$ (100) ,a$ (0), 0The last parameter specifies the direction of the sort. A zero results in the largest element sorted fust while a non-zero value gives a smallest-first order. The elements passed need not make up the whole array - it is possible to sort parts, or even two parts in different order Strings may be any length. Note that 464 users will need the at (@) symbol before the string name |SORT, @a$(0) , @a$(100) ,0
|