1.2 KiB
1.2 KiB
python-sorted-function
Syntax
sorted(iterable, key=key, reverse=reverse)
Parameter Values
———–———————————————————————————————+
| Parameter | Description |
———–———————————————————————————————+
| iterable | Required. The sequence to sort, list, dictionary, tuple etc. |
———–———————————————————————————————+
| key | Optional. A Function to execute to decide the order. Default is None |
———–———————————————————————————————+
| reverse | Optional. A Boolean. False will sort ascending, True will sort descending. Default is False |
———–———————————————————————————————+