I have a python list of time values that I extracted from a web log. I have the list in the format of %H:%M:%S. How would I sort the time values in ascending o
%H:%M:%S
import time sorted((time.strptime(d, "%H:%M:%S") for d in time_list), reverse=True)