Sorting

Laravel column sorting made easy

This is my shot at universal and easy to use model sorting in Laravel. The end result allows you to sort an Eloquent model using any column by clicking the column name. Everything is done in PHP, no JS involved. Laravel/PHP Prerequirements Traits are only supported in PHP 5.4+ Tested with Laravel 4.0, 4.1 and…