 Some versions of BASIC allow the programmer to sort an array.S/34 BASIC doesn't provide a function for this, but it does provide an interesting remedy.The programmer can define an array with the same number of elements as the target array and use AIDX or DIDX to create an ascending or descending index.