Fixes CSV filenames for adv. search
params[:q] passes into Adv. Search box

It turns out not all Hashes in Rails are HashWithIndifferentAccess...
Changes ordering to group types together in adv. search