sort
Syntax: %sort(list,dir)
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:
008|123|45|789|9|ab|ab cd|ABC|def
#SHOW %sort(@slist,1)
displays:
def|ABC|ab cd|ab|9|789|45|123|008 |