Verify the sequence of Time in JavaScript Selenium

I have a list of time as folllowing,
‘a day ago,
10 days ago,
3 months ago,
6 months ago’.

How to verify that these dates are ascending? in javascript Selenium

I cant think of trying anything, I have some ideas for dd/mm/yyyy or mm/dd/yyyy. But this Text format of the time made me confused.