Sort Arr Of Obj
const ceks = [
{
'qty':2
},
{
'qty':1
},
{
'qty':3
},
]
ceks.sort((a,b) => a.qty - b.qty);
console.log("Hello World! =>", ceks);INFO
const ceks = [
{
'qty':2
},
{
'qty':1
},
{
'qty':3
},
]
ceks.sort((a,b) => a.qty - b.qty);
console.log("Hello World! =>", ceks);