Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

array sort by alphabetical javascript

users.sort((a, b) => a.firstname.localeCompare(b.firstname))
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #array #sort #alphabetical #javascript
ADD COMMENT
Topic
Name
5+3 =