{"5eaa9ce8": {
"Id": "1958208",
"priority": 0
},
"5eaa9bs8": {
"Id": "1958208",
"priority": 2
},
"6eaa9ce8": {
"Id": "1958208",
"priority": 1
}
}
Need to sort this Map based on the priority of the key.
and needed output is { "5eaa9bs8": { "Id": "1958208", "priority": 2 }, "6eaa9ce8": { "Id": "1958208", "priority": 1 }, "5eaa9ce8": { "Id": "1958208", "priority": 0 } }