SORT on an array with zero elements gives an error. DIM Z$[0]:SORT Z$ Out of range(SORT:1)