|
@@ -739,8 +739,9 @@ class PracticeManagementController extends Controller
|
|
|
::where('is_cleared_for_shipment', true)
|
|
|
->where('is_cancelled', false)
|
|
|
->whereNull('shipment_id')
|
|
|
- ->orderBy('name_last', 'ASC')
|
|
|
- ->orderBy('name_first', 'ASC')
|
|
|
+ ->join('client', 'client.id', '=', 'supply_order.client_id')
|
|
|
+ ->orderBy('client.name_last', 'ASC')
|
|
|
+ ->orderBy('client.name_first', 'ASC')
|
|
|
->orderBy('client_id', 'ASC')
|
|
|
->orderBy('mailing_address_full', 'ASC')
|
|
|
->orderBy('created_at', 'ASC')
|