Fredrik Lundh wrote: > SpreadTooThin wrote: > > > I have a list and I need to do a custom sort on it... > > > Its more like > > 1 4 7 10 > > 2 5 8 > > 3 6 9 > > that's trivial to do with slicing, of course. what makes you think you > need to do this by calling the "sort" method ? > > </F>
You are of course correct.. There might be a way to do this with slicing and i % 3 -- http://mail.python.org/mailman/listinfo/python-list