Command Reference : String and Date Function Reference
  
 
@wsort
Syntax: @wsort(str_list[, “d”])
Argument 1: string list, str_list
Argument 2: “d” to sort in descending order
Return: string list
Returns sorted elements of str_list. Use the “d” flag to sort in descending order.
Example:
@wsort("expr1 aa1 fr3")
returns the sorted string “aa1 expr1 fr3”
@wsort("fq8 Fq8 xpr1", "d")
sorts the string in descending order: “xpr1 Fq8 fq8”.