arrayobject sort in javascript descending code example
Example: descending order in objects in js
starWarsPeople.map(e=>{
return e
}).sort((a,b)=> b.height - a.height);
starWarsPeople.map(e=>{
return e
}).sort((a,b)=> b.height - a.height);