Skip to content

Commit e346d86

Browse files
authored
Fix Order by
1 parent 95a73d9 commit e346d86

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Repository/QueueConfigRepository.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,17 @@ final class QueueConfigRepository
1313
{
1414
public static function findAll()
1515
{
16-
return QueueConfig::where([])->get()->orderBy('name');
16+
return QueueConfig::where([])->orderBy('name')->get();
1717
}
1818

1919
public static function findActives()
2020
{
21-
return QueueConfig::where(['active' => true])->get()->orderBy('name');
21+
return QueueConfig::where(['active' => true])->orderBy('name')->get();
2222
}
2323

2424
public static function findSchedulables()
2525
{
26-
return QueueConfig::where(['active' => true, 'schedulable' => true])->get()->orderBy('name');
26+
return QueueConfig::where(['active' => true, 'schedulable' => true])->orderBy('name')->get();
2727
}
2828

2929
public static function findOneByName($name)

0 commit comments

Comments
 (0)