SSORT() Function - Sort String
Syntax
SSORT(str1,int1{,str2,int2}{,ERR=lineref})
Description
The SSORT() function sorts str1 using int1 as the record size and optionally using the key described using str2 and int2 as a key descriptor pair. The key descriptor has the length of the key to sort. See the KGEN() function for additional information. The string returned by this function is str1, sorted.
Examples
2010 DEVS$="",DEV=0
2020 T$=TSK(DEV,ERR=2060),DEV=DEV+1
2030 T$=T$(3,POS($00$=T$(3))-1)
2040 DEVS$=DEVS$+T$+FILL(32-LEN(T$),$00$)
2050 GOTO 2020
2060 DEVS$=SSORT(DEVS$,32)