mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-08 08:24:39 -04:00
contacts array sorter
This commit is contained in:
parent
b022ae0c77
commit
edf7b6eb37
@ -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…
x
Reference in New Issue
Block a user