Commit e0e05fa5d8787a9caa1c958eda6cf5d9cfc7d754

Authored by Benjamin Renard
1 parent ebcb4a2e

Fix sort (#6897)

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
php/classes/TimeTableCacheSortObject.php
... ... @@ -235,7 +235,7 @@ class TimeTableCacheSortObject
235 235 {
236 236 $res = $part->compare($global_intervals[$index_a], $global_intervals[$index_b]);
237 237 if ($res != 0)
238   - return $res;
  238 + return ($res > 0) ? 1 : -1;
239 239 }
240 240 return $index_a-$index_b;
241 241 });
... ...