compare function in sort function of lists

Gabe Newcomb Gabe.Newcomb at noetix.com
Fri Apr 5 17:21:14 EST 2002


Hi all:
	I'm trying to sort a list numerically, e.g.,  so that 11 comes
AFTER 2. The documentation says I need to pass sort() a compare
function...but I can't find an example of this.

This should be an easy one for you folks :)

TIA,

Gabe Newcomb
Software Test Automation Engineer
425.372.2732
Noetix Corporation
www.noetix.com







More information about the Python-list mailing list