Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix CIF sorting by forcing key=repr.
It turns out sorting in `ComplexIntervalField` is broken. In this case, there are two elements that do not compare. ``` sage: x = PolynomialRing(CBF, 'x').gen() sage: _, a, b, _ = sorted((x^4 - 3).roots(ComplexIntervalField(100), multiplicities=False)) sage: a == b False sage: a < b False sage: a > b False sage: sorted([a,b]) [0.?e-37 + 1.31607401295249246081921890180?*I, 0.?e-37 - 1.31607401295249246081921890180?*I] sage: sorted([b,a]) [0.?e-37 - 1.31607401295249246081921890180?*I, 0.?e-37 + 1.31607401295249246081921890180?*I] ```
- Loading branch information