DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
sort
var randomdata = [1,3,5,20,4,2]; randomdata.sort((a, b)=> a.compareTo(b)); print(randomdata);
Source by dafinrs.medium.com #
PREVIOUS
NEXT
Tagged:
#sort
ADD COMMENT
Topic
COMMENT
Name
6+5 =
Submit