Bad sorting and other pitfalls

added by DotNetKicks
10/30/2019 3:32:50 PM

222 Views

While tracing a bug, I ended up with the following minimum reproduction: The error you'll get is: Unable to sort because the IComparer.Compare() method returns inconsistent results. Either a value does not compare equal to itself, or one value repeatedly compared to another value yields different results.


0 comments