Hola, alguien conoce algun script para ordenar una tabla automaticamente segun valores numericos? De mayor a menor?
¿Qué tipo de tabla? SQL? HTML?
Si es una tabla HTML (<table>) puedes utilizar TableSorter. Básicamente se usa así:
<head>
<!-- jQuery se puede descargar desde jquery.com -->
<script src="jquery.js"></script>
<!-- Este lo descargas desde donwload de la página que menciono al comienzo. -->
<script src="tablesorter.js"></script>
</head>
<body>
<table id="datos">
<tbody>
<tr>
<td>150</td>
</tr>
<tr>
<td>50</td>
</tr>
<tr>
<td>200</td>
</tr>
<tr>
<td>25</td>
</tr>
</tbody>
</table>
<script>
// Puedes ponerlo en el head también
jQuery(document).ready(function($) {
$('#datos').tablesorter();
});
</script>
</body>