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

Also added order-by optimization.

KMS-3488