Resources are sorted by Average rating by default - used sort_by method in Ruby