summaryrefslogtreecommitdiff
path: root/app/php/dto/CalendarGroupDTO.php
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2016-03-16 23:01:16 +0100
committeremkael <emkael@tlen.pl>2016-03-16 23:01:16 +0100
commitab39bbffbea2fa9d2cd98e0f107e066e42b59458 (patch)
tree4eafddeea989eb6f99cba42e50928e153d720348 /app/php/dto/CalendarGroupDTO.php
parenta1aa2d65bff34b8f5681ed16c992e49384c79f2e (diff)
* CalendarGroupDTO comparator
Diffstat (limited to 'app/php/dto/CalendarGroupDTO.php')
-rw-r--r--app/php/dto/CalendarGroupDTO.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/php/dto/CalendarGroupDTO.php b/app/php/dto/CalendarGroupDTO.php
index 779422d..a03afde 100644
--- a/app/php/dto/CalendarGroupDTO.php
+++ b/app/php/dto/CalendarGroupDTO.php
@@ -26,6 +26,11 @@ class CalendarGroupDTO {
usort($this->Calendars, ['CalendarDTO', '__compare']);
}
+ public static function __compare(CalendarGroupDTO $cat1,
+ CalendarGroupDTO $cat2) {
+ return strcmp($cat1->Name, $cat2->Name);
+ }
+
}
?>