Fixed lt and gt checks in card comparator