DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
how to sort an array of objects by a property value in javascript
let x = list.sort((a, b) => (a.name > b.name ? 1 : -1));
Source by devsheet.com #
PREVIOUS
NEXT
Tagged:
#sort
#array
#objects
#property
#javascript
ADD COMMENT
Topic
COMMENT
Name
4+2 =
Submit