Which sorting technique is most efficient for sorting a string that contains ASCII characters?
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
Since there are only 255 values possible for each entry, counting sort seems the simplest thing to do.
However, it is not clear why one would want to sort the characters in a string