Porfavor podrian pasarmelo a PHP, no es tan largo pero me harian un GRAN favor.
Pero no utilizen funciones nativas de php, sino solo codigo sencillo, porfavor haganlo aun mas sencillo que este codigo en C#,
yo no entiendo por ejemplo que hace el "while( bucket[i] )", si lo pueden remplazar por algo mas entendible.
Tampoco entiendo bucket[ ary[i] ]++, bucket[i]--;
tampoco entiendo int bucket[RANGE] = { 0 };
LO NECESITO EN PHP, SI ALGUIEN ME AYUDA ESTARE SUMAMENTE AGRADECIDO.
SI LO HACEN AUN MAS SENCILLO QUE ESTE CODIGO MUCHO MEJOR (NO UTILIZEN FUNCIONES DE PHP)
void bucketSort ( int ary[], int n )
{
int bucket[RANGE] = { 0 };
int i;
int j;
for( i = 0; i < n; i++ )
bucket[ ary[i] ]++;
j = 0;
for( i = 0; i < RANGE; i++ )
{
while( bucket[i] )
{
ary[j++] = i;
bucket[i]--;
}
}
return;
}


te pasas HaverRamirez muy buena! comparto lo dicho inicialmente con HaverRamirez, pero josealfonso1 al menos intentaste traducirlo? porque no solemos estar aqui para hacer el trabajo de otro sino ayudar, darles empujoncitos y que se desenvuelvan cada uno para que vean sus errores... 

