so I have the following query for my companies
companies.where(industry: industries_queried)
I would like to sort them, so that the first records returned are the ones with plan_id == 3, then 2, then 1. (descendingly)
But then, I would also like to arrange each of these 4 parts, so that they are sorted alphabetically per name.
How would I go about doing this in Rails 5?