Need a strange sort method...

SpreadTooThin bjobrien62 at gmail.com
Mon Oct 16 21:12:43 CEST 2006


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




More information about the Python-list mailing list