Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

string sort javascript

var names = ["Peter", "Emma", "Jack", "Mia"];
var sorted = names.sort(); // ["Emma", "Jack", "Mia", "Peter"]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #string #sort #javascript
ADD COMMENT
Topic
Name
4+7 =