From ca015e4249e4714262e418e8199aadf14d5e8f18 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Thu, 14 Jan 2016 22:21:38 +0000 Subject: [PATCH] Sort users alphabetically for planner by user --- calendar/js/et2_widget_planner.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/calendar/js/et2_widget_planner.js b/calendar/js/et2_widget_planner.js index 778400fdbc..ade21ce61c 100644 --- a/calendar/js/et2_widget_planner.js +++ b/calendar/js/et2_widget_planner.js @@ -378,7 +378,9 @@ var et2_calendar_planner = et2_calendar_view.extend([et2_IDetachedDOM, et2_IResi } } - return labels; + return labels.sort(function(a,b) { + return a.label.localeCompare(b.label); + }); }, // Group the events into the rows group: function(labels, rows, event) {