diff options
Diffstat (limited to 'app/php/dto/CalendarDTO.php')
-rw-r--r-- | app/php/dto/CalendarDTO.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/php/dto/CalendarDTO.php b/app/php/dto/CalendarDTO.php index 302fcf4..a222cd6 100644 --- a/app/php/dto/CalendarDTO.php +++ b/app/php/dto/CalendarDTO.php @@ -14,6 +14,10 @@ class CalendarDTO { $this->Website = $calendarRecord->Website; } + public static function __compare(CalendarDTO $cal1, CalendarDTO $cal2) { + return strcmp($cal1->Name, $cal2->Name); + } + } ?> |