I have the following data in an SQL column. Column type is String. I would prefer to sort this data when I query it from the DB, but I suppose it could be organized with some Ruby magic after the SQL query is complete. There are other columns being pulled out, so this is just one of the columns that needs to be sorted.
Expenses
$3500/MONTH
$1,000.00
STANDARD CONTRACTOR
$5,000.00
The data cannot change and must be stored in the same column (the example above just test data).
I would like to organize the data by increasing number and then the rest (string) values. The expected result should be:
$1,000.00
$5,000.00
$3500/MONTH
STANDARD CONTRACTOR
or
$1,000.00
$5,000.00
STANDARD CONTRACTOR
$3500/MONTH