Commit 01b55c22
Changed files (1)
app
controllers
app/controllers/profiles_controller.rb
@@ -2,7 +2,7 @@ class ProfilesController < ApplicationController
before_filter :authenticate_user!, :except => [:index, :show]
def index
- @profiles = User.includes(:avatar).where('creations_count > 0').page(params[:page]).per(12)
+ @profiles = User.includes(:avatar).where('creations_count > 0').order(:creations_count => :desc).page(params[:page]).per(12)
end
def show