returns the list with items sorted in alphabetical order. If Dir is missing or zero, list is sorted in ascending order. If Dir is non-zero, list is sorted in descending order.
Examples:
#VAR slist {123|ab|45|008|789|ABC|ab cd|def|9} #SHOW %sort(@slist)
displays:
#SHOW %sort(@slist,1)
displays: