Apollon,
<!DOCTYPE HTML>
<html>
<head>
<title>Untitled</title>
<meta charset="utf-8">
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script>
$(document)
.ready(function () {
var tr = $('.statistika-table tr').not(':first');
tr = $.makeArray(tr)
.sort(function (a, b) {
a = $('[class^=sum]', a)
.text().match(/\d+/g);
b = $('[class^=sum]', b)
.text().match(/\d+/g);
return a[0] - b[0] || a[1] - b[1] || a[2] - b[2]
})
$.map(tr, function (el, i) {
$('td:first', el)
.text(i + 1 + '.');
el.parentNode.appendChild(el)
return el;
});
});
</script>
</head>
<body>
<table class="sortable statistika-table" cellspacing='0'>
<tr>
<th>№</th>
<th>Пилот</th>
<th>Время</th>
</tr>
<tr>
<td>3.</td>
<td><a class="r" href="#">К. Райкконен</a></td>
<td class="sum">1:31.456</td>
</tr>
<tr>
<td>1.</td>
<td><a class="r" href="#">С. Феттель</a></td>
<td class="sum">1:32.747</td>
</tr>
<tr>
<td>2.</td>
<td><a class="r" href="#">Ф. Алонсо</a></td>
<td class="sum">1:30.545</td>
</tr>
</table>
</body>
</html>