Sort

Sort

Sort items in the list.

  • List: The input list.
  • Key: The key used to compare and sort the items.