PyDocs

Nav

Python Runtime Services

sorted

builtins

function
  • sorted(iterable, /, *, key=None, reverse=False)
Return a new list containing all items from the iterable in ascending order.

A custom key function can be supplied to customize the sort order, and the
reverse flag can be set to request the result in descending order.
0 Examples
No examples for builtins/sorted.
See Also
No see-alsos for builtins/sorted
0 Notes
No notes for sorted