Using addCondition() to make sure the condition reaches the Sphinx query

Also added an order-by optimization

KMS-3488