Browse Source

sort stops

tags/v1.0.0
Robin Thoni 8 years ago
parent
commit
10df9b840f
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      app/Business/StopsBusiness.php

+ 4
- 0
app/Business/StopsBusiness.php View File

59
                 }
59
                 }
60
             }
60
             }
61
         }
61
         }
62
+        usort($dbos, function ($dbo1, $dbo2)
63
+        {
64
+            return $dbo1->getId() > $dbo2->getId();
65
+        });
62
         return new LuPaginatedDbo(count($dbos), $dbos);
66
         return new LuPaginatedDbo(count($dbos), $dbos);
63
     }
67
     }
64
 }
68
 }

Loading…
Cancel
Save