Corrected comparison order