I have an list of objects like Notification that has 3 lists - areaWise
, sensorWise
and regionWise
. I need to sort the Notification object list based on the max percentage by combining all 3 lists.
Below is my notification object :
{
"notificationId": 26,
"areaWise": [],
"sensorWise": [
{
"id": 3,
"threshold": 1,
"headCount": 113,
"pecentage": 11200
},
{
"id": 4,
"threshold": 1,
"headCount": 108,
"pecentage": 10700
},
{
"id": 5,
"threshold": 1,
"headCount": 108,
"pecentage": 10700
},
{
"id": 7,
"threshold": 1,
"headCount": 91,
"pecentage": 9000
}
],
"regionWise": []
},