From f2459057389f7bbb751eaf325d1783c15f856ebc Mon Sep 17 00:00:00 2001 From: emkael Date: Tue, 15 Mar 2016 22:12:52 +0100 Subject: * sorting user selection --- app/php/dto/CalendarGroupDTO.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'app/php/dto') diff --git a/app/php/dto/CalendarGroupDTO.php b/app/php/dto/CalendarGroupDTO.php index 3adb6c1..e1f39b5 100644 --- a/app/php/dto/CalendarGroupDTO.php +++ b/app/php/dto/CalendarGroupDTO.php @@ -23,6 +23,12 @@ class CalendarGroupDTO { } ) ); + usort( + $this->Calendars, + function ($cal1, $cal2) { + return strcmp($cal1->Name, $cal2->Name); + } + ); } } -- cgit v1.2.3