Answers for "js sort a array of strings"

10

javascript order by string array

users.sort((a, b) => a.firstname.localeCompare(b.firstname))
Posted by: Guest on October-19-2020

Code answers related to "js sort a array of strings"

Code answers related to "Javascript"

Browse Popular Code Answers by Language