From 9ba968ce3354b1a8ab307ecc4cc785bdee16f914 Mon Sep 17 00:00:00 2001 From: Saturnino Abril Date: Wed, 1 Feb 2017 08:57:16 +0900 Subject: Use consistent Display Name sorting code throughout the webapp #5159 (#5213) * Use consistent Display Name sorting code throughout the webapp #5159 * fixed broken sorting of teams and channels --- .../team_sidebar/team_sidebar_controller.jsx | 30 +++++++++++----------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'webapp/components/team_sidebar') diff --git a/webapp/components/team_sidebar/team_sidebar_controller.jsx b/webapp/components/team_sidebar/team_sidebar_controller.jsx index ac3a9f894..49635455f 100644 --- a/webapp/components/team_sidebar/team_sidebar_controller.jsx +++ b/webapp/components/team_sidebar/team_sidebar_controller.jsx @@ -118,21 +118,21 @@ export default class TeamSidebar extends React.Component { } const teams = myTeams. - sort((a, b) => a.display_name.localeCompare(b.display_name)). - map((team) => { - return ( - - ); - }); + sort(Utils.sortTeamsByDisplayName). + map((team) => { + return ( + + ); + }); if (moreTeams) { teams.push( -- cgit v1.2.3-1-g7c22