This might be more efficient to handle on the DB (select count(answers) as total....order by total asc). Here more info for implementing this in Eloquent: http://laravel.com/docs/5.0/eloquent#querying-relations
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community