Vladimir Panteleev:

What do you use this for?

For lots of different reasons (counting, testing, histograms, to unique-ify, to allow binary searches, etc), you can find alternative solutions for every one of those use cases.


I can think of sort being useful e.g. to see which characters appear in a string (and with which frequency), but as the concept does not apply to all languages, one would need to draw a line somewhere for which languages they want to support. I think this should be done explicitly in user code.

So far I have needed to sort 7-bit ASCII chars.

Bye,
bearophile

Reply via email to