scoped_search
scoped_search copied to clipboard
Can't :order by field defined with :ext_method
AFAICT it's not possible to correctly :order by a field defined with the :ext_method feature. Would be very useful to me to add this.
I think this should not be too hard to add/fix. I have never used ext_method myself though.
So :ext_method gets passed a key, an operator, and a value. To build the ORDER BY clause you have none of those things. I think this is going to require defining a different method e.g. :ext_order_method or something...
I am willing to look into this if you can provide me a small code snippet with the expected behavior, or even better, a failing test case :).