Nov-04-2020, 05:52 PM
(This post was last modified: Nov-04-2020, 11:33 PM by chrischarley.)
(Nov-04-2020, 05:30 PM)deanhystad Wrote:(Nov-04-2020, 05:23 PM)chrischarley Wrote: Since the dates are nearly in iso form (with YYYY/MM/DD etc.), you may simply sort the lexicographic form.But do we know for sure it is MM and DD?
sorted_lines = sorted(f, reverse=True)
That is true I didn't consider that possibility . But, his hours, minutes and seconds were 0 padded when less than 10.