Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript sorting array string by len


array.sort(function(a, b){return b.length - a.length});
 
PREVIOUS NEXT
Tagged: #javascript #sorting #array #string #len
ADD COMMENT
Topic
Name
7+9 =