Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

descending order in objects in js

starWarsPeople.map(e=>{
    return e
  }).sort((a,b)=> b.height - a.height);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #descending #order #objects #js
ADD COMMENT
Topic
Name
3+1 =