I am using the CustomValues Get API I would like to have the most recent entries listed first.
Is there a way that I can sort results in reverse when placing an API get?
For example, below I want to sort the values['217'] so that values['217']['10'] is the first. Here are the results I get:
{
"is_error": 0,
"version": 3,
"count": 1,
"id": 217,
"values": {
"217": {
"entity_id": "7088",
"latest": "2016-11-01 00:00:00",
"id": "217",
"1": "2016-10-25 00:00:00",
"2": "2016-10-18 00:00:00",
"3": "2016-01-01 00:00:00",
"4": "2016-01-01 00:00:00",
"5": "2016-01-01 00:00:00",
"6": "2016-10-27 00:00:00",
"7": "2016-10-27 00:00:00",
"8": "2016-10-27 00:00:00",
"9": "2016-10-27 00:00:00",
"10": "2016-10-27 00:00:00",
}
}
}
Thanks!