scoped_search icon indicating copy to clipboard operation
scoped_search copied to clipboard

Can't :order by field defined with :ext_method

Open rpaterson opened this issue 10 years ago • 3 comments

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.

rpaterson avatar Mar 26 '14 12:03 rpaterson

I think this should not be too hard to add/fix. I have never used ext_method myself though.

wvanbergen avatar Mar 26 '14 14:03 wvanbergen

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...

rpaterson avatar Mar 26 '14 15:03 rpaterson

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 :).

wvanbergen avatar Mar 31 '14 12:03 wvanbergen