We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3d7681f + d46acaa commit 3dd5184Copy full SHA for 3dd5184
src/FileRepository.php
@@ -294,15 +294,15 @@ public function getOrdered($direction = 'asc') : array
294
$modules = $this->allEnabled();
295
296
uasort($modules, function (Module $a, Module $b) use ($direction) {
297
- if ($a->order == $b->order) {
+ if ((int) $a->order == (int) $b->order) {
298
return 0;
299
}
300
301
if ($direction == 'desc') {
302
- return $a->order < $b->order ? 1 : -1;
+ return (int) $a->order < (int) $b->order ? 1 : -1;
303
304
305
- return $a->order > $b->order ? 1 : -1;
+ return (int) $a->order > (int) $b->order ? 1 : -1;
306
});
307
308
return $modules;
0 commit comments