I need to sort a list with a note to it.
For instance:
list = ['2015-12-01: remember groceries' , '2017-12-21 : buy presents'] etc.
My problem is that I need to sort the list by the dates and still have the notes attached to that date. Any ideas how to do this? Dictionary? Lists within lists?
I know how to sort just the dates, but I can't seem to figure out how to sort it with the notes attached to it.