I must be missing something. I can't seem to get ARRAY SORT to sort a simple array. Can someone show me what I am doing wrong?
This program does not sort the array. Why? What's wrong?
Code:
FUNCTION PBMAIN () AS LONG DIM LIST(1-100) AS STRING LIST (1) = "<ZZMYPROG>" LIST (2) = "<MOUNTAIN>" LIST (3) = "<BLUEBERRY>" LIST (4) = "<APPLES>" LIST (5) = "<CHERRIES>" ARRAY SORT LIST (), DESCEND PRINT LIST (1) PRINT LIST (2) PRINT LIST (3) PRINT LIST (4) PRINT LIST (5) WAITKEY$ END FUNCTION
Comment