sort functions in python

Carl Banks pavlovevidence at gmail.com
Sat Feb 9 23:02:54 EST 2008


On Feb 9, 4:37 pm, Jeff Schwab <j... at schwabcenter.com> wrote:
> Carl Banks wrote:
> > On Feb 8, 10:09 pm, Jeff Schwab <j... at schwabcenter.com> wrote:
> >> If you expect your data to be pretty nearly sorted
> >> already, but you just want to make sure (e.g. because a small number of
> >> elements may have been inserted or removed since the last sort),
> >> bubble-sort is a good choice.
>
> > But if you're at that stage you probably were doing something wrong in
> > the first place.
>
> How do you figure?

"Probably."

:)


Carl Banks



More information about the Python-list mailing list