Sort lists and tables as text
The TextSort function sorts the elements of a list as text in ascending order. Sorting as text means on the one hand that elements may also contain text and on the other hand that the order corresponds to the ASSCII character set (numbers in front of letters, large letters in front of the small ones).
In the case of a table, the number of a column can be optionally specified according to which the rows are sorted. If no column is specified, the values are sorted line by line.
TextSort (list)
TextSort (table, column)
a = [3, 2, 6, 22, 1, “Hi“, 38]
TextSort (a) = 1 2 22 3 38 6 Hi