diff options
Diffstat (limited to 'webapp/components/admin_console/select_team_modal.jsx')
-rw-r--r-- | webapp/components/admin_console/select_team_modal.jsx | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/webapp/components/admin_console/select_team_modal.jsx b/webapp/components/admin_console/select_team_modal.jsx index e407e61b4..14448d753 100644 --- a/webapp/components/admin_console/select_team_modal.jsx +++ b/webapp/components/admin_console/select_team_modal.jsx @@ -26,16 +26,7 @@ export default class SelectTeamModal extends React.Component { } compare(a, b) { - const teamA = a.display_name.toLowerCase(); - const teamB = b.display_name.toLowerCase(); - - if (teamA < teamB) { - return -1; - } - if (teamA > teamB) { - return 1; - } - return 0; + return a.display_name.localeCompare(b.display_name); } render() { |