contacts array sorter
This commit is contained in:
parent
b022ae0c77
commit
edf7b6eb37
1 changed files with 1 additions and 1 deletions
|
|
@ -101,7 +101,7 @@ class ClientRepository extends BaseRepository
|
|||
$contactIds = [];
|
||||
|
||||
usort($contacts, function ($left, $right) {
|
||||
return $left['priority'] - $right['priority'];
|
||||
return $left['is_primary'] - $right['is_primary'];
|
||||
});
|
||||
|
||||
foreach ($contacts as $contact) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue