reorganize artist version search methods

This commit is contained in:
Toks
2013-04-14 18:16:55 -04:00
parent 79f4fb4d9f
commit a3c06044af
2 changed files with 28 additions and 16 deletions

View File

@@ -254,7 +254,7 @@ class Artist < ActiveRecord::Base
q = q.any_name_matches(params[:name])
end
if params[:sort] == "Name"
if params[:sort] == "name"
q = q.reorder("name")
else
q = q.reorder("id desc")