Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

sort list by likes in javascript

What you are looking for is the .sort method

sorting by an object property

.sort((a,b)=>b.property-a.property)
 
PREVIOUS NEXT
Tagged: #sort #list #likes #javascript
ADD COMMENT
Topic
Name
2+9 =