#!/usr/local/bin/python2 class C(object): def __init__(self, i): self.i = i print sorted([C(0), C(-1), C(5), C(1), C(-4), C(0)])