You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What is the expected output? What do you see instead?
Observe that sorting descending by Total Time will yield e.g. the order 3.0 --> 20.0 --> 100.0, which is expected when sorting strings, but wrong when sorting numbers
Please provide any additional information below
. Depending on the sorting implementation, it is possible this can be fixed by simply adding key=float to the sorting function, i.e., instead of lst.sort(), do lst.sort(key=float).
From cmee...@gmail.com on 2014-12-04T04:30:08Z
Spyder Version: 2.3.1
Python Version: 2.7.6
Qt Version : 4.8.6, PyQt4 (API v2) 4.10.4 on Windows
pyflakes >=0.5.0: 0.8.1 (OK)
pep8 >=0.6 : 1.5.7 (OK)
IPython >=0.13 : 2.3.0 (OK)
pygments >=1.6 : 1.6 (OK)
pandas >=0.13.1 : 0.14.1 (OK)
sphinx >=0.6.6 : 1.2.3 (OK)
rope >=0.9.2 : 0.9.4 (OK)
matplotlib >=1.0: 1.4.0 (OK)
sympy >=0.7.0 : 0.7.5 (OK)
pylint >=0.25 : None (NOK)
What steps will reproduce the problem?
What is the expected output? What do you see instead?
Observe that sorting descending by Total Time will yield e.g. the order 3.0 --> 20.0 --> 100.0, which is expected when sorting strings, but wrong when sorting numbers
Please provide any additional information below
. Depending on the sorting implementation, it is possible this can be fixed by simply adding key=float to the sorting function, i.e., instead of lst.sort(), do lst.sort(key=float).
Original issue: http://code.google.com/p/spyderlib/issues/detail?id=2074
The text was updated successfully, but these errors were encountered: