I'm working on a help system that lets users assign a "tag color" to
their requests in addition to assigning the usual "high, medium, low"
priority. My question is whether it's possible to do a sort based on
the tag color. Valid colors are green, yellow, orange, and red, and
these are stored as strings in the database.
I'd like to use something like:
# Customer Model
has_many :requests, :order => priority, tag_color
Is it possible to add a sort based on these string values?