Hello, how do I make short recognize the entire object
{
"Dir": "Sd:/",
"List": [
{
"Tipo": "P.O.S.-",
"Data": "11/10/2017",
"Hora": "23:58",
"Size": "0",
"Nome": "Arquivo1"
},
{
"Tipo": "P.-.-.-",
"Data": "12/05/2017",
"Hora": "23:57",
"Size": "0",
"Nome": "Arquivo2"
},
{
"Tipo": "P.-.-.A",
"Data": "14/10/2017",
"Hora": "23:57",
"Size": "0",
"Nome": "Arquivo3"
},
{
"Tipo": "P.-.-.-",
"Data": "16/12/2017",
"Hora": "23:57",
"Size": "0",
"Nome": "Arquivo4"
},
{
"Tipo": "P.-.-.-",
"Data": "29/09/2017",
"Hora": "23:57",
"Size": "0",
"Nome": "Arquivo5"
}
],
"NArq": "0",
"NPast": "5"
}
I want to organize the "Data" object in order of last modification.
var a = a.Data.toLowerCase();
var b = b.Data.toLowerCase();
return a < b ? -1 : a > b ? 1 : 0;
It only detects the first number, but the rest does not: /