Sort by domain name?
ebgssth at gmail.com
Mon Oct 2 18:30:55 CEST 2006
> How about sorting the strings as they are reversed?
> urls = """\
> sortedList = [ su for su in sorted([ (u[::-1],u) for u in urls ]) ]
> for url in sortedList:
> print url
> Close to what you are looking for, might be good enough?
Great... I couldn't thought that way. Thanks a lot!
More information about the Python-list