Make sure controller params is a hash
Make sure controller params is a hash

ActionController::Parameters do not inherit from HWIA in rails 5.
As a conceuquence, `#sort_by` is not available. Forcing the result of
`#select` to be a hash suffices.

skroutz/cogy,skroutz/cogy,skroutz/cogy