Override the comparison operations, to make the sorting implementation simple.
Output empty string when fail_mode is not available.