lsort
Sort by ASCII collation order (default).
Sort using dictionary order (case insensitive, compare numbers as integers).
Compare elements as integer numbers.
Compare elements as floating-point numbers.
command
Compare using a command that must return <0, 0, or >0.
Sort in increasing order (default).
Sort in decreasing order.
index
Sort a list of lists based on the values with index
index
in each sublist.