DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
sort array based on another array
arr.sort((a, b) =>{ return sortingArray.indexOf(a) - sortingArray.indexOf(b); });
PREVIOUS
NEXT
Tagged:
#sort
#array
#based
#array
ADD COMMENT
Topic
COMMENT
Name
1+9 =
Submit