From: Michael J. Rubinsky Date: Thu, 13 May 2010 14:14:16 +0000 (-0400) Subject: Sort exception list before display. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=73ab4748c3f4f7ca5df1986d87400d1b0fc69220;p=horde.git Sort exception list before display. Ticket: 7688 --- 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)); } /**