Commit d8049dd6 authored by Jesús Espino's avatar Jesús Espino Committed by Carlos Tadeu Panato Junior

MM-10767: Sort the teams in the teams selector modal (#1299)

parent a5676187
......@@ -210,6 +210,7 @@ export default class TeamSelectorModal extends React.Component {
teams = this.props.teams.filter((team) => team.delete_at === 0);
teams = teams.filter((team) => team.scheme_id !== this.currentSchemeId);
teams = teams.filter((team) => this.props.alreadySelected.indexOf(team.id) === -1);
teams.sort((a, b) => a.display_name.toUpperCase() > b.display_name.toUpperCase());
}
return (
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment