From 73ab4748c3f4f7ca5df1986d87400d1b0fc69220 Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Thu, 13 May 2010 10:14:16 -0400 Subject: [PATCH] Sort exception list before display. Ticket: 7688 --- kronolith/docs/CHANGES | 1 + kronolith/lib/Event.php | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/kronolith/docs/CHANGES b/kronolith/docs/CHANGES index 3d28ca1c7..245baba88 100644 --- a/kronolith/docs/CHANGES +++ b/kronolith/docs/CHANGES @@ -32,6 +32,7 @@ v3.0-git v2.3.5-cvs ---------- +[mjr] Sort exception list before displaying (Request #7688). [mjr] Do not remove history entries when removing user data (Bug #8755). diff --git a/kronolith/lib/Event.php b/kronolith/lib/Event.php index a9c3befbe..1b0f18022 100644 --- a/kronolith/lib/Event.php +++ b/kronolith/lib/Event.php @@ -1723,8 +1723,9 @@ abstract class Kronolith_Event * @return string List of exception dates and delete links. */ public function exceptionsList() - { - return implode(', ', array_map(array($this, 'exceptionLink'), $this->recurrence->getExceptions())); + { $exceptions = $this->recurrence->getExceptions(); + asort($exceptions); + return implode(', ', array_map(array($this, 'exceptionLink'), $exceptions)); } /** -- 2.11.0