Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

sort array

a = ['12', '24', '44', '32', '55'] 
a.sort! # a is now sorted 
 
a.sort # returns a sorted array, but does not modify a itself. Typical use: b = a.sort
Source by www.quora.com #
 
PREVIOUS NEXT
Tagged: #sort #array
ADD COMMENT
Topic
Name
8+1 =