|
@@ -190,7 +190,7 @@ class AdminController extends Controller
|
|
|
|
|
|
$sortBySQL = "$sortBy $sortDir NULLS LAST";
|
|
|
|
|
|
- if($sortBy !== 'client_engagement_status_category' || $request->input('status')) {
|
|
|
+ if($sortBy !== 'client_engagement_status_category' && $request->input('status')) {
|
|
|
$sortBySQL = "client_engagement_status_category DESC NULLS LAST";
|
|
|
}
|
|
|
|