Python sorting problem

Posted by matt on Stack Overflow See other posts from Stack Overflow or by matt
Published on 2010-06-13T17:50:00Z Indexed on 2010/06/13 17:52 UTC
Read the original article Hit count: 284

Filed under:
|

I'm sure this is simple but I can't figure it out. I have a list of strings like this(after using sorted on it):

Season 2, Episode 1: A Flight to Remember
Season 2, Episode 20: Anthology of Interest I
Season 2, Episode 2: Mars University
Season 2, Episode 3: When Aliens Attack
....
Season 3, Episode 10: The Luck of the Fryrish
Season 3, Episode 11: The Cyber House Rules
Season 3, Episode 12: Insane in the Mainframe   
Season 3, Episode 1: The Honking
Season 3, Episode 2: War Is the H-Word

How can I make them sort out properly? (by episode #, ascending)

© Stack Overflow or respective owner

Related posts about python

Related posts about sorting