[issue14542] reverse() doesn't reverse sort correctly

Bill Jefferson report at bugs.python.org
Tue Apr 10 23:22:29 CEST 2012


New submission from Bill Jefferson <shaggers3 at yahoo.com>:

reverse() doesn't reverse sort correctly in Python 25 and 27. sort() works correctly, but reverse doesn't. The following uses reverse(). Incorrect. Even though the date comes first, reverse() sorts on the file name, "B57IBMCD_T.....zip"

2012-04-05 B57IBMCD_T7.2.3.1.zip
2012-03-23 B57IBMCD_T7.2.2.3.zip
2012-02-22 B57IBMCD_T7.2.2.2.zip
2012-02-13 B57IBMCD_T7.2.2.1.zip
2012-01-23 B57IBMCD_T7.2.1.1.zip
2012-03-28 B57IBMCD_T7.0.4.6.zip
2012-03-08 B57IBMCD_T7.0.4.5.zip
2012-03-03 B57IBMCD_T7.0.4.4.zip
2012-02-29 B57IBMCD_T7.0.4.3.zip
2012-01-06 B57IBMCD_T7.0.4.2.zip
2011-12-08 B57IBMCD_T7.0.4.1.zip
2012-01-06 B57IBMCD_T7.0.3.1.zip
2012-01-06 B57IBMCD_T7.0.2.2.zip
2012-01-06 B57IBMCD_T7.0.2.1.zip
2012-01-06 B57IBMCD_T6.2.4.9.zip
2011-12-07 B57IBMCD_T6.2.4.9-r1.zip
2011-09-13 B57IBMCD_T6.2.4.8.zip
2012-03-28 B57IBMCD_T6.2.4.12.zip
2012-02-15 B57IBMCD_T6.2.4.11.zip
2011-12-06 B57IBMCD_T6.2.4.10.zip

----------
components: Demos and Tools, IDLE, Windows
files: EX38.PY
messages: 157988
nosy: billje
priority: normal
severity: normal
status: open
title: reverse() doesn't reverse sort correctly
type: performance
versions: Python 2.7
Added file: http://bugs.python.org/file25172/EX38.PY

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14542>
_______________________________________


More information about the Python-bugs-list mailing list