diff --git a/app/Http/Livewire/PaymentsTable.php b/app/Http/Livewire/PaymentsTable.php index 716efb78724d..208f3cc549bd 100644 --- a/app/Http/Livewire/PaymentsTable.php +++ b/app/Http/Livewire/PaymentsTable.php @@ -43,7 +43,7 @@ class PaymentsTable extends Component ->where('company_id', $this->company->id) ->where('client_id', auth()->guard('contact')->user()->client_id) ->whereIn('status_id', [Payment::STATUS_FAILED, Payment::STATUS_COMPLETED, Payment::STATUS_PENDING, Payment::STATUS_REFUNDED, Payment::STATUS_PARTIALLY_REFUNDED]) - ->orderBy($this->sort_field, $this->sort_asc ? 'asc' : 'desc') + ->orderBy($this->sort_field, $this->sort_asc ? 'desc' : 'asc') ->withTrashed() ->paginate($this->per_page);