I want to sort an ActiveRecord query based on the values in an array. Something like:
@fruits=Fruit.where(seeds: true)._________________________
Say I wanted to sort the results by color using the array ['Red','Blue','Yellow']
I see where SQL supports the use of a case statement for custom ordering, does Rails have something that utilizes this?