-sharp
a = [{"info1" : "someinfo", "date" : 1}, {"info1" : "someinfo", "date" : 4}, {"info1" : "someinfo", "date" : 7}, {"info1" : "someinfo", "date" : 13}]
b = [{"info1" : "someinfo", "date" : 3}, {"info1" : "someinfo", "date" : 8}]
-sharp date,
-sharp c
c = [{"info1" : "someinfo", "date" : 1}, {"info1" : "someinfo", "date" : 3}, {"info1" : "someinfo", "date" : 4}, {"info1" : "someinfo", "date" : 7}, {"info1" : "someinfo", "date" : 8}, {"info1" : "someinfo", "date" : 13}]
The order of an is: 1, 4, 7, 13
b: 3, 8
after sorting: the order of
c is: 1, 3, 4, 7, 8, 13
needs to be sorted according to the size of the date of the dictionary in the list, from small to large. How to write the python code?
there may be more than one arem b, and there may be several lists that need to be sorted like this.
how to sort faster and keep the code concise?
Thank you