sympy/sympy — pull request #1362 by scolobb (2012-06-20 14:12:26+00:00)
Title: Use `sort_key()` to sort those elements in `FiniteSet` which have it.

Using `sort_key` instead of relying on the objects being comparable considerably widens the range of objects which are sorted deterministically rather than arbitrarily.