I would like to sort database query by:
number value DESCENDING considering String property from another field
Something like:
ORDER BY money DESC,
currency = 'EUR'
Example:
money | currency
-----------------------
200 | EUR
300 | USD
500 | USD
100 | EUR
400 | EUR
I would like to sort money
in descending fashion only when currency
is equal to EUR
. I don't want other currency to be considered in sorting such as:
money | currency
-----------------------
400 | EUR
200 | EUR
100 | EUR
300 | USD
500 | USD
I don't need the sorting after EUR
. Could be totally random