You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
314 B
314 B
Sort list of strings in Javascript
users.sort((a, b) => a.firstname.localeCompare(b.firstname))
or reversed order:
users.sort((a, b) => a.firstname.localeCompare(b.firstname) * -1)