From b8d6eba7889ac84220badef64a5d0fdccd704f06 Mon Sep 17 00:00:00 2001 From: Ryan Wang Date: Mon, 12 Sep 2016 10:00:15 -0400 Subject: Team names in system console are sorted alphabetically regardless of case (#3958) --- webapp/components/admin_console/select_team_modal.jsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'webapp/components') diff --git a/webapp/components/admin_console/select_team_modal.jsx b/webapp/components/admin_console/select_team_modal.jsx index 2ea6cc58c..a661dd2f0 100644 --- a/webapp/components/admin_console/select_team_modal.jsx +++ b/webapp/components/admin_console/select_team_modal.jsx @@ -25,10 +25,13 @@ export default class SelectTeamModal extends React.Component { this.props.onModalDismissed(); } compare(a, b) { - if (a.display_name < b.display_name) { + const teamA = a.display_name.toLowerCase(); + const teamB = b.display_name.toLowerCase(); + + if (teamA < teamB) { return -1; } - if (a.display_name > b.display_name) { + if (teamA > teamB) { return 1; } return 0; -- cgit v1.2.3-1-g7c22