ActiveRecord sort by resource name