I have a nested list in a list. In the first nested list, it has dates and in second, it has values corresponding to the date. I need to sort the date in the nested list. Based on date, corresponding value should be sorted. I know sorted(list) works. But I don't know how to sort the nested value list according to the date. I want the date type to be in string and not date. Help me with some solutions.
Here's the list:
a = [["2019-10-13","2019-10-12","2019-10-14","2019-10-11"],[10,28,5,37]]
Output Required
a = [["2019-10-11","2019-10-12","2019-10-13","2019-10-14"],[37,28,10,5]]