I am currently facing a challenge in sorting a complex object. Here is the structure of the object:
[{
"searchResultProperties": [{
"key": "message_time",
"value": 1542088800000
}, {
"key": "size_byte AVG",
"value": 480
}, {
"key": "source_file",
"value": "log"
}, {
"key": "source_host",
"value": "lab8.domain.com"
}],
"show": false,
"key": null,
"type": null
}, {
"searchResultProperties": [{
"key": "message_time",
"value": 1542096000000
}, {
"key": "size_byte AVG",
"value": 373
}, {
"key": "source_file",
"value": "log"
}, {
"key": "source_host",
"value": "lab8.domain.com"
}],
"show": false,
"key": null,
"type": null
}, {
"searchResultProperties": [{
"key": "message_time",
"value": 1542103200000
}, {
"key": "size_byte AVG",
"value": 683
}, {
"key": "source_file",
"value": "log"
}, {
"key": "source_host",
"value": "lab8.domain.com"
}],
"show": false,
"key": null,
"type": null
}]
Essentially, this is an array of objects containing a property named "searchResultProperties", which consists of an array of objects with properties "key" and "value".
My objective is to sort the objects based on the "key" property, specifically "size_byte AVG".