DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
sort JavaScript array by two numeric fields
grouperArray.sort(function (a, b) { return a.gsize - b.gsize || a.glow - b.glow; });
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#sort
#JavaScript
#array
#numeric
#fields
ADD COMMENT
Topic
COMMENT
Name
3+5 =
Submit