Comparison method violates its general contract!**

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web248

  • via Stack Overflow by V P
  • Stack trace

    • java.lang.IllegalArgumentException: Comparison method violates its general contract!** at java.util.TimSort.mergeLo( at java.util.TimSort.mergeAt( at java.util.TimSort.mergeCollapse( at java.util.TimSort.sort( at java.util.TimSort.sort( at java.util.Arrays.sort( at scala.collection.SeqLike$class.sorted(SeqLike.scala:618) at scala.collection.AbstractSeq.sorted(Seq.scala:41) at scala.collection.SeqLike$class.sortWith(SeqLike.scala:575) at scala.collection.AbstractSeq.sortWith(Seq.scala:41)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown visitor
    Unknown visitorOnce,
    3 times, last one
    6 times, last one
    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    7 more bugmates