I have a js object:
{
"total_builds": 73,
"history": {
"2021-2-8": 4,
"2021-2-5": 39,
"2021-2-10": 6,
"2021-2-6": 13,
"2021-2-7": 14
}
}
and how can i sort it like this:
{
"total_builds": 73,
"history": {
"2021-2-5": 39,
"2021-2-6": 13,
"2021-2-7": 14,
"2021-2-8": 4,
"2021-2-10": 3
}
}
Simply put how to sort a json object by key(date)?