Ver Mensaje Individual
  #9 (permalink)  
Antiguo 21/09/2009, 09:32
agusinn
 
Fecha de Ingreso: septiembre-2009
Ubicación: My home
Mensajes: 8
Antigüedad: 15 años, 4 meses
Puntos: 0
Respuesta: Sort is not a function al ordenar un array de numeros

bueno no pude
pero checa esto:
hace lo que tu quieres
<html>
<body>

<script type="text/javascript">

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

var arr = new Array(6);
arr[0] = "10";
arr[1] = "5";
arr[2] = "40";
arr[3] = "25";
arr[4] = "1000";
arr[5] = "1";

document.write(arr + "<br />");
document.write(arr.sort(sortNumber));

</script>

</body>
</html>

si no tambien checa este link tambien es algo como lo que quieres:
www . forosdelweb . com /f13/duda-con-sort-592960/