Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

sort

data = ["zzz", "aaa", "aza", "zaa"];
filteredData = data.sort((a, b) => a > b ? 1 : -1);

// console.log("filteredData", filteredData)
 
PREVIOUS NEXT
Tagged: #sort
ADD COMMENT
Topic
Name
2+9 =