I am trying to understand how I could compare imaginary number in a list like so, and 1j is the imaginary number (-1 square root)
x = [1, 1j]
x.sort()
Traceback (most recent call last):
File "<pyshell#13>", line 1, in ?
x.sort()
TypeError: cannot compare complex numbers using <, <=, >, >=