DEV Community

JavaScript Sorting Arrays

Falah Al Fitri on December 23, 2021

Array The sort() method sorts an array alphabetically: Example const fruits = ["Banana", "Orange", "Apple", "Mango"]; fruits.sort();...
Collapse
 
jacobgavin profile image
Jacob Gavin

Im not trying to be a dick but this post is just a copy paste from w3school... Why?

Collapse
 
antelove19 profile image
Falah Al Fitri

This is just to archive the code, save "the code" for me, especially