Last active
February 18, 2016 16:29
-
-
Save anthonyterrell/f2e16781a33a4ca10603 to your computer and use it in GitHub Desktop.
jQuery datatable server side column sorting. This is done in PHP, more specifically Laravel 5.2.*
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if($request->get('order')[0]['column']){ | |
$data->orderBy($request->get('columns')[$request->get('order')[0]['column']]['data'], $request->get('order')[0]['dir']); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment