Sorting and Reversing

Syntax:
sorted([list, key, Reverse_Flag])

The key and reverse flags are optional. The default value for Reverse_Flat is false.

For example:

Output:


Output:

And

Output: