Fix for Laravel 4.1 level sorting.