Fixed comparator to satisfy the contract. In some edge cases this could cause issues with Java7+ (TimSort).

The issue was discussed here: 
https://groups.google.com/forum/#!topic/testng-users/MTOOA5I8gcs