DEV Community

Discussion on: Sorting in JavaScript

Collapse
 
salehmubashar profile image
Saleh Mubashar

yes, the possibilities are endless if one understands the use of comparison functions, however I wanted to keep this post simple and give the common and easy to understand solution for sorting strings and numbers, which are more commonly used.
thanks