Using `sort_key` instead of relying on the objects being comparable considerably widens the range of objects which are sorted deterministically rather than arbitrarily.
You can merge this Pull Request by running: git pull https://github.com/scolobb/sympy finiteset-sort_key Or you can view, comment on it, or merge it online at: https://github.com/sympy/sympy/pull/1362 -- Commit Summary -- * Use sort_key in FiniteSet's element_sort_fn. * Fix the ordering of elements in the doctests in sympy.categories. -- File Changes -- M sympy/categories/baseclasses.py (4) M sympy/core/sets.py (6) -- Patch Links -- https://github.com/sympy/sympy/pull/1362.patch https://github.com/sympy/sympy/pull/1362.diff --- Reply to this email directly or view it on GitHub: https://github.com/sympy/sympy/pull/1362 -- You received this message because you are subscribed to the Google Groups "sympy-patches" group. To post to this group, send email to sympy-patches@googlegroups.com. To unsubscribe from this group, send email to sympy-patches+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sympy-patches?hl=en.