A less-or-equal comparator crashed.
transcript
A C plus plus comparator looks fine. It uses less than or equal. One character can decide whether a sort is safe. What could go wrong?
Less than says false for equal values. Less than or equal says true. One character separates the two comparators. So a value comes before itself.
A sort assumes a real order. A row never comes before itself. Sorts rely on this rule for every pair. Break that, and behaviour is undefined.
The test sorted a hundred equal integers. The comparator was less than or equal. A shorter list may seem to work. The program ended with exit code one thirty eight.
That was one compiler, one run. Another may crash differently. Or it may seem to work. Never rely on it.
Use less than or greater than only. Test the rule on equal values. A tie must return false, never true. And test an empty list.
Use less than only. Full breakdown in the lecture.