Various ways of sorting and the differences between Python 2.3 and 2.4 [1]