Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js sort number array

objs.sort((a,b) => a.last_nom - b.last_nom); // b - a for reverse sort
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #js #sort #number #array
ADD COMMENT
Topic
Name
7+1 =