Temo che la tua funzione ordina_numeri non sia corretta.
Comunque, quello che cerchi dovrebbe essere:
codice:function ordina_numeri(a, b) { a=(""+a).toLowerCase(); b=(""+b).toLowerCase(); if(a==b){ return 0; }else if(a>b){ return 1; }else{ return -1; } }

Rispondi quotando