How to sort list

Lad python at hope.cz
Tue Nov 21 14:15:47 EST 2006


I have a list of emails and I would like to sorted that list by domains
E.g.
If the list is

Emails=['a at hotmail.com','a at yahoo.com','b at hotmail.com','c at yahoo.com',....]

after sorting I would like to have
Emails=['a at hotmail.com','b at hotmail.com','a at yahoo.com','c at yahoo.com',....]

What is the best/easiest way?

Thank you for help
L.




More information about the Python-list mailing list