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 mark.dickinson
Recipients Mark.Shannon, brett.cannon, mark.dickinson, rhettinger, rhpvorderman, serhiy.storchaka, tim.peters, vstinner, yselivanov
Date 2021-11-26.11:03:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1637924590.26.0.286349849421.issue45902@roundup.psfhosted.org>
In-reply-to
Content
Can you give example use-cases for sorting a bytes or bytearray object? I see value in the intermediate object - the frequency table, but the reconstructed sorted bytes object just seems like an inefficient representation of the frequency table, and I'm not sure how it would be useful.

As the wikipedia page for counting sort says, the real value is in sorting items by keys that are small integers, and the special case where the item is identical to the key isn't all that useful:

> In some descriptions of counting sort, the input to be sorted is assumed to be more simply a sequence of integers itself, but this simplification does not accommodate many applications of counting sort.
History
Date User Action Args
2021-11-26 11:03:10mark.dickinsonsetrecipients: + mark.dickinson, tim.peters, brett.cannon, rhettinger, vstinner, Mark.Shannon, serhiy.storchaka, yselivanov, rhpvorderman
2021-11-26 11:03:10mark.dickinsonsetmessageid: <1637924590.26.0.286349849421.issue45902@roundup.psfhosted.org>
2021-11-26 11:03:10mark.dickinsonlinkissue45902 messages
2021-11-26 11:03:10mark.dickinsoncreate