I have multiple strings that are all number values. They are all inside the same db table. Is there a way to join them all and sort by the highest number?
Something like (pseudo code):
:include => :word_one_value, :word_two_value, :word_three_value, :sort_by => "sum ASC"
In MySql:
In ActiveRecord:
Or if these fields are inside Foo:
Then in the controller:
The conversions are unnecessary if you store numbers in number columns.