I am looking for sorting the list of objects based on key
Here is my object
var Categories = {
"social": [
{
"id": "social_001",
"lastModified": "2 Day ago"
}
],
"communication": [
{
"id": "communication_001",
"lastModified": "4 Day ago"
},
{
"id": "communication_002",
"lastModified": "1 Day ago"
}
],
"storage": [
{
"id": "storage_001",
"lastModified": "3 Day ago"
}
]
}
so in output sorted object will sort as start with communication, social , storage suggest me some help.