Sort exception list before display.
authorMichael J. Rubinsky <mrubinsk@horde.org>
Thu, 13 May 2010 14:14:16 +0000 (10:14 -0400)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Thu, 13 May 2010 14:20:48 +0000 (10:20 -0400)
Ticket: 7688

kronolith/docs/CHANGES
kronolith/lib/Event.php

index 3d28ca1..245baba 100644 (file)
@@ -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).
 
 
index a9c3bef..1b0f180 100644 (file)
@@ -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));
     }
 
     /**