Fix results sorting