Mahylik,
<!DOCTYPE HTML>
<script type="text/javascript">
function f() {
for (var d = document.querySelector("#tab"), a = document.querySelectorAll("#tab tr:nth-child(n + 3)"), a = Array.prototype.map.call(a, function(b) {
return b
}).sort(function(b, a) {
return +b.cells[3].innerHTML - +a.cells[3].innerHTML || +b.cells[0].innerHTML - +a.cells[0].innerHTML
}), c; c = a.shift();) d.appendChild(c)
};
</script>
</html>
|