Questo algoritmo è bellissimo:
http://it.wikibooks.org/wiki/Impleme...mi/Bucket_sort