orderBy with variable column
Hey all!
I'd like to explore the possibility to order a query by one of it's columns, but the column itself is inferred from a variable.
What i've tried:
but no sort is applied.
Even using
does not change the final result.
Any idea?
Thanks in advance!
I'd like to explore the possibility to order a query by one of it's columns, but the column itself is inferred from a variable.
What i've tried:
but no sort is applied.
Even using
does not change the final result.
Any idea?
Thanks in advance!