Skip to content

Commit 95a73d9

Browse files
authored
Fix order by
1 parent 2f21ab2 commit 95a73d9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Repository/QueueConfigRepository.php

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

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

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

2929
public static function findOneByName($name)
3030
{
3131
return QueueConfig::where(['name' => $name])->get()->first();
3232
}
33-
}
33+
}

0 commit comments

Comments
 (0)