I have an array that is used in an application to show some files that need to be ordered.
I wonder if it is possible to shake order the most recent "value" of the "Creation date".
we have not achieved it with the array inside an array
This is the entry:
[
{
"campos": [
{
"nombre_campo": "ID",
"valor": "1635942768793"
},
{
"nombre_campo": "Fecha creación",
"valor": "2021-01-04 09:32:48"
}
]
},
{
"campos": [
{
"nombre_campo": "ID",
"valor": "1632417779050"
},
{
"nombre_campo": "Fecha creación",
"valor": "2021-09-23 14:22:59"
}
]
}
]
I would:
[
{
"campos": [
{
"nombre_campo": "ID",
"valor": "1632417779050"
},
{
"nombre_campo": "Fecha creación",
"valor": "2021-09-23 14:22:59"
}
]
},
{
"campos": [
{
"nombre_campo": "ID",
"valor": "1635942768793"
},
{
"nombre_campo": "Fecha creación",
"valor": "2021-01-04 09:32:48"
}
]
}
]
Is it possible?
Thank you
