Algorithm Implementation/Sorting/Counting sort

JavaScript
JavaScript implementation with simple HTML test page

Python
''Note: that this implementation does not need the temporary scratch array. It sorts in-place, except it needs the counting array. The emit step does not copy original values from the input array but creates new ones.''

Ruby
Unlike the Python version, this doesn't sort in-place, but returns a new array.

Implementazioni di algoritmi/Counting sort