This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Tamirys Pino
Recipients Tamirys Pino
Date 2019-10-07.04:29:16
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1570422556.48.0.0127805381731.issue38389@roundup.psfhosted.org>
In-reply-to
Content
>>> data=[2, 3, 2, 4, 5, 12, 2, 3, 3, 3, 12, 5]
>>> data
[2, 3, 2, 4, 5, 12, 2, 3, 3, 3, 12, 5]
>>> sorted(data)
[2, 2, 2, 3, 3, 3, 3, 4, 5, 5, 12, 12]
>>> sorted(data, key=data.count)
[4, 5, 12, 12, 5, 2, 2, 2, 3, 3, 3, 3]

[4, 5, 12, 12, 5, 2, 2, 2, 3, 3, 3, 3] should be [4, 5, 5, 12, 12, 2, 2, 2, 3, 3, 3, 3]
History
Date User Action Args
2019-10-07 04:29:16Tamirys Pinosetrecipients: + Tamirys Pino
2019-10-07 04:29:16Tamirys Pinosetmessageid: <1570422556.48.0.0127805381731.issue38389@roundup.psfhosted.org>
2019-10-07 04:29:16Tamirys Pinolinkissue38389 messages
2019-10-07 04:29:16Tamirys Pinocreate