summaryrefslogtreecommitdiff
path: root/app/php/dto/CalendarGroupDTO.php
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2016-03-16 23:00:49 +0100
committeremkael <emkael@tlen.pl>2016-03-16 23:00:49 +0100
commita1aa2d65bff34b8f5681ed16c992e49384c79f2e (patch)
treeee26f2ad08b999125e9e6defe0fc18b54032fbe9 /app/php/dto/CalendarGroupDTO.php
parent89e2c7d7f9a9e2889770409c7d2be668c06af87d (diff)
* CalendarDTO comparator
Diffstat (limited to 'app/php/dto/CalendarGroupDTO.php')
-rw-r--r--app/php/dto/CalendarGroupDTO.php7
1 files changed, 1 insertions, 6 deletions
diff --git a/app/php/dto/CalendarGroupDTO.php b/app/php/dto/CalendarGroupDTO.php
index 75ec6c6..779422d 100644
--- a/app/php/dto/CalendarGroupDTO.php
+++ b/app/php/dto/CalendarGroupDTO.php
@@ -23,12 +23,7 @@ class CalendarGroupDTO {
}
)
);
- usort(
- $this->Calendars,
- function ($cal1, $cal2) {
- return strcmp($cal1->Name, $cal2->Name);
- }
- );
+ usort($this->Calendars, ['CalendarDTO', '__compare']);
}
}