what happens if sort on empty array in javascript code example
Example: javascript order by string array
users.sort((a, b) => a.firstname.localeCompare(b.firstname))
users.sort((a, b) => a.firstname.localeCompare(b.firstname))