How do I sort a Python list of time values? -


i have python list of time values extracted web log. have list in format of %h:%m:%s. how sort time values in ascending order?

just sorted(time_list) works fine.

>>> sorted(["14:10:01", "03:12:08"]) ["03:12:08", "14:10:01"] 

Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -