Debug "Comparison method violates its general contract!"
java, sorting
Solution
OK, I did it the brute-force-way: 3 nested loops to compare 3 values with each other and verifying the above rule. Now found a sample where the rule is violated.
Problem
I have an own, relatively sophisticated string comparator and a large list of strings (~100 strings, already tried to reduce but then the problem is not reproducible) where sorting them produces the above error when trying to sort with Java 7. I guess, that the rule ``` if a < b and b < c then a < c ``` might be violated. What is the best way to find out a sample which violates the contract?