The
List.sort function sorts the values within a
List. An optional argument,
ascending or
descending, allows for the specification of the sort order. If not specified, the default sort order is ascending. String values are sorted in case sensitive order, so
"c" is recognized as different from
"C".