Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js sort by array key value

myArray.sort((a, b) => a.key - b.key)
 
PREVIOUS NEXT
Tagged: #js #sort #array #key
ADD COMMENT
Topic
Name
3+7 =