How can i scale the dates (from oldest to most recent) in my file using python? : <p>i am currently trying to use datetime to re-organize dates from oldest to most recent in a .txt file. In the file i am reading in, the dates have the following format: 1 2019 06 27 05 47 57 464. The first column is the ID number, second is the year, third is the month, forth is the day, fifth is the hour, sixth is minutes, seventh is seconds and eight is millisecs. 
Is there an efficient way to organize it from oldest (in this case: 2000 2018 07 16 08 57 34 344) to most recent (1 2019 06 27 05 47 57 464)?</p>

<p>I have tried importing datetime in python and reading in my file and setting the variables equal to their appropriate positions, but i cannot figure it out.</p>
