try using thinking sphinx to order search results