order[1] is the separator - ' '


On 3 March 2014 19:11, Willem van Bergen <notifications@github.com> wrote:

> In lib/scoped_search/query_builder.rb:
>
> >        sql = field.to_sql(&block)
> > -      direction = (order.to_s.downcase.include?('desc')) ? " DESC" : " ASC"
> > +      direction = (order[2].downcase.include?('desc')) ? " DESC" : " ASC"
>
> What is order[1]?
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/wvanbergen/scoped_search/pull/74/files#r10223612>
> .
>