fix compare results sorting