Last updated:
users.sort((a, b) => a.firstname.localeCompare(b.firstname))
or reversed order:
users.sort((a, b) => a.firstname.localeCompare(b.firstname) * -1)
users.sort((a, b) => a.firstname.localeCompare(b.firstname))
or reversed order:
users.sort((a, b) => a.firstname.localeCompare(b.firstname) * -1)