sorting a list
dyoo at hkn.eecs.berkeley.edu
Wed Mar 10 03:06:46 CET 2004
ketulp_baroda at yahoo.com wrote:
: I want to sort a list.
: My problem is:
: ['A','D', 'F', 'a', 'f']
: But I am actually looking for an output:
: Is there any module to sort a list this way?
Yes, Python's lists do have a sort() method that we can use to do
sorting. If you're like to learn more, there's a great Sorting HOWTO
by Andrew Dalke that should be helpful:
Hope this helps!
More information about the Python-list