I'm having the following data in the snippet
What I need to achieve as I don't know is how I can sort/order that data in that way the
siteId will be in ascending order and the nested object currents will be always following this order of the items inside
currents: {
"PENDING_CALLCENTER": 1,
"PENDING_SITE": 4,
"CONSENTED": 1,
"RANDOMIZED": 0,
...
}
I have difficulties on how to sort/order the nested abject.
I was able as per snippet to orderBy but that affects the main OBJ how to make the order be as above inside the currents object that I don't know