thinking sphinx ordering by mixing capitals and lower case

Posted by miccet on Stack Overflow See other posts from Stack Overflow or by miccet
Published on 2011-01-17T12:30:37Z Indexed on 2011/01/17 12:53 UTC
Read the original article Hit count: 166

I have a rails application that is using thinking_sphinx for the searching. My problem is that the result returned is sorted with capitals first and lower case after it at the bottom. I'd like to mix them so that both 'A' and 'a' comes before 'B'. This is the method I'm using:

Company.search(query, :star => true, :page => params[:page], :per_page => 20, :order => :name, :sort_mode => :asc)

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about order-by