Answers for "sort string alphabetically javascript"

7

alphabetical order array javascript

arr.sort(function(a, b) {
    return a === b ? 0 : a < b ? -1 : 1;
  });
Posted by: Guest on August-11-2020

Code answers related to "sort string alphabetically javascript"

Browse Popular Code Answers by Language