Fixed sorting-problems in combination with existing search condition