Sorts a list of data, {0}, according to the optional criteria specified. An optional parameter, {1}, can be specified as ...

Sorts a list of data, {0}, according to the optional criteria specified. 
    An optional parameter, {1}, can be specified as the comparison criterion. This can take the following values:
    
  • To control the order, the comparison criterion can be an Order enum value. (Order.Descending, Order.Ascending).
  • To compute a key to be used for sorting, a function of 1 argument can be used.
  • To both select a key and control order, comparison criterion can be a list containing the key and order ({{each 1 / _, Order.Descending}}).
  • To completely control the comparison, a function of 2 arguments can be used that returns -1, 0, or 1 given the relationship between the left and right inputs. Value.Compare is a method that can be used to delegate this logic.