I have the following object:
var obj = {
"2019-01-28 00:00:00.000": [],
"2019-01-29 00:00:00.000": [],
"2019-01-30 00:00:00.000": [],
"2019-02-02 00:00:00.000": []
}
How sort this object by key/date?
I tried iterate all element and convert to new Date(element)
then compare with prev value.