Ver Mensaje Individual
  #2 (permalink)  
Antiguo 20/01/2011, 10:10
Avatar de goteen_mx
goteen_mx
 
Fecha de Ingreso: abril-2005
Ubicación: D.F.
Mensajes: 403
Antigüedad: 19 años, 1 mes
Puntos: 37
Respuesta: problema funcion

Código PHP:
<script type="text/javascript">

function 
sortNumber(a,b)
{
return 
b;
}

var 
= ["10""5""40""25""100""1"];
document.write(n.sort(sortNumber));

</script> 
fuente: http://www.w3schools.com/jsref/jsref_sort.asp

Salu2