examples/lists/sorted.py
from __future__ import print_function

letters = ['a', 'x', 'b', 'z']
print(letters)         # ['a', 'x', 'b', 'z']
s = sorted(letters)
print(s)               # ['a', 'b', 'x', 'z']
print(letters)         # ['a', 'x', 'b', 'z']

r = sorted(letters, reverse=True)
print(r)               # ['z', 'x', 'b', 'a']