sorting a list

ketulp_baroda at yahoo.com ketulp_baroda at yahoo.com
Tue Mar 9 18:13:12 EST 2004


Hi
I want to sort a list.
My problem is:

>>> a=['a','f','F','A','D']
>>> a.sort()
>>> a
['A','D', 'F', 'a', 'f']


But I am actually looking for an output:
['A','a','D','F','f']

Is there any module to sort a list this way?



More information about the Python-list mailing list