Comment #24 on issue 1467 by matt...@gmail.com: sorting values with imaginary numbers in radical
http://code.google.com/p/sympy/issues/detail?id=1467

btw. For sorting expressions we have sort_key, e.g.:

In [1]: sorted([3, -I, I, 2 + I], key=lambda expr: sympify(expr).sort_key())
Out[1]: [3, -ⅈ, ⅈ, 2 + ⅈ]

In https://github.com/sympy/sympy/pull/385 we can use shorter syntax:

In [2]: Basic.sorted([3, -I, I, 2 + I])
Out[2]: [3, -ⅈ, ⅈ, 2 + ⅈ]

--
You received this message because you are subscribed to the Google Groups 
"sympy-issues" group.
To post to this group, send email to sympy-issues@googlegroups.com.
To unsubscribe from this group, send email to 
sympy-issues+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sympy-issues?hl=en.

Reply via email to