I currently have an object like this
let obj = {
"5": "961131",
"8": "961127",
"5,5": "961107",
"7": "961103",
"9.5": "961115"
}
Is it possible to sort it by its keys in ascending order? The result I want to achieve would be:
obj = {
"5": "961131",
"5,5": "961107",
"7": "961103",
"8": "961127",
"9.5": "961115"
}
It would probably involve creating a new object which I don't mind, just not sure how to get this done