Notes: I\'ve thought about Radix sort, bucket sort, counting sort.
Is there anyway to achieve big O(n)?
A counting sort would be the obvious choice under these circumstances. Yes, properly implemented it should have linear complexity.