DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
jquery order by specific order
var arr = arr.sort(function(a,b) { return order.indexOf( a.key ) - order.indexOf( b.key ); });
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#jquery
#order
#specific
#order
ADD COMMENT
Topic
COMMENT
Name
1+2 =
Submit