This part of the incomplete code from that link gives it away as actually being counting sort!:The rest confirms it also.Code:++buckets [a [i]];
It even states that it comes from:Wow that's bad. You'd expect it to be right in a book!"Data Structures and Algorithms // with Object-Oriented Design Patterns in C++"
My apologies for my outburst of sarcasm earlier.