diff --git a/app/controllers/calendar/calendar.php b/app/controllers/calendar/calendar.php
index a2b42e6aa7a4fbcbe836e5f338f0403655351277..fd00956bc563b5968bb2afaff07f91a673017e8c 100644
--- a/app/controllers/calendar/calendar.php
+++ b/app/controllers/calendar/calendar.php
@@ -616,13 +616,10 @@ class Calendar_CalendarController extends AuthenticatedController
         uasort($users, function(User $a, User $b) {
             $fullname_a = $a->getFullName();
             $fullname_b = $b->getFullName();
-            if ($fullname_a < $fullname_b) {
-                return -1;
-            } elseif ($fullname_a > $fullname_b) {
-                return 1;
-            } else {
+            if ($fullname_a == $fullname_b) {
                 return 0;
             }
+            return ($fullname_a > $fullname_b) ? 1 : -1;
         });
 
         foreach ($users as $user) {