examples/lists/sort_mixed.py
from __future__ import print_function

mixed = [100, 'foo', 42, 'bar']
print(mixed)  # [100, 'foo', 42, 'bar']
mixed.sort()
print(mixed)  # [42, 100, 'bar', 'foo']

Puts the numbers first in numerical order and then the strings in ASCII order.