summaryrefslogtreecommitdiff
path: root/app/php/dto
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2016-03-15 22:12:52 +0100
committeremkael <emkael@tlen.pl>2016-03-15 22:12:52 +0100
commitf2459057389f7bbb751eaf325d1783c15f856ebc (patch)
treec3901e12d6242013320410f8d3dd9ed7b8598438 /app/php/dto
parentcc09e963e8ef7ea093c7b13096856e5c732cd776 (diff)
* sorting user selection
Diffstat (limited to 'app/php/dto')
-rw-r--r--app/php/dto/CalendarGroupDTO.php6
1 files changed, 6 insertions, 0 deletions
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);
+ }
+ );
}
}