Added extra order by switch for first_name and last_name

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2023-03-16 16:07:51 -07:00
parent 5e4455f042
commit b374834999

View file

@ -217,6 +217,14 @@ class UsersController extends Controller
case 'company':
$users = $users->OrderCompany($order);
break;
case 'first_name':
$users->orderBy('first_name', $order);
$users->orderBy('last_name', $order);
break;
case 'last_name':
$users->orderBy('last_name', $order);
$users->orderBy('first_name', $order);
break;
default:
$allowed_columns =
[