помогите! есть код сортировки! все работает, но нужно, что бы проходила автоматическая сортировка сначало по 9 столбцу потом по 3-му т.е. если в 9 столбце одинаковые значения то сортировка между ними проходила по 3-му столбцу.
Подскажите куда и что пропискать!? так подозреваю что в скрипт прописать что то нужно, а вот что
Code
<script>var numbersOptions = true; var bindOptions = {
0: { sorter:false },
1: { sorter:false },
2: { },
3: { binder : [ [5, 1], [6, 0], [7, 0] ] },
4: { binder : [ [5, 1], [6, 0], [7, 0] ] },
5: { binder : [ [6, 'reverse'], [7, 'reverse'] ] },
6: { },
7: { }
8: { }
9: { }
}
</script>
<table width="100%" cellspacing="1" cellpadding="4" class="tr_h b-table-sortlist">
<thead>
<tr>
<th background="g_22.jpg" tppabs="http://st.championat.net/i/old/g_22.jpg">№</th>
<th background="g_22.jpg" tppabs="http://st.championat.net/i/old/g_22.jpg"></th>
<th background="g_22.jpg" tppabs="http://st.championat.net/i/old/g_22.jpg"><span>Команда</span></th>
<th background="g_22.jpg" tppabs="http://st.championat.net/i/old/g_22.jpg"><span>И</span></th>
<th background="g_22.jpg" tppabs="http://st.championat.net/i/old/g_22.jpg"><span>В</span></th>
<th background="g_22.jpg" tppabs="http://st.championat.net/i/old/g_22.jpg"><span>Н</span></th>
<th background="g_22.jpg" tppabs="http://st.championat.net/i/old/g_22.jpg"><span>П</span></th>
<th background="g_22.jpg" tppabs="http://st.championat.net/i/old/g_22.jpg"><span>ГЗ</span></th>
<th background="g_22.jpg" tppabs="http://st.championat.net/i/old/g_22.jpg"><span>ГП</span></th>
<th background="g_22.jpg" tppabs="http://st.championat.net/i/old/g_22.jpg"><span>О</span></th>
</tr>
</thead>
<tbody>
<tr class="tr_0">
<td width="40" style="text-align: center;">1</td>
<td width="45" style="text-align: center;">
<img src="br.gif" tppabs="http://st.championat.net/i/cflags/br.gif" width=16 height=11 alt='Бразилия' title='Бразилия' />
</td>
<td sortOrder='Звезда-2005'><a href="javascript:if(confirm('http://www.championat.ru/football/_russiapl/151/player/9497.html \n\nThis file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address. \n\nDo you want to open it from the server?'))window.location='http://www.championat.ru/football/_russiapl/151/player/9497.html'" tppabs="http://www.championat.ru/football/_russiapl/151/player/9497.html" class=calendarlink> Звезда-2005</a></td>
<td style="text-align: center;">1</td>
<td style="text-align: center;">0</td>
<td style="text-align: center;">0</td>
<td style="text-align: center;">0</td>
<td style="text-align: center;">0</td>
<td style="text-align: center;">0</td>
<td style="text-align: center;">1</td>
</tr>
<tr class="tr_0">
<td width="40" style="text-align: center;">2</td>
<td width="45" style="text-align: center;">
<img src="br.gif" tppabs="http://st.championat.net/i/cflags/br.gif" width=16 height=11 alt='Бразилия' title='Бразилия' />
</td>
<td sortOrder='Россиянка'><a href="javascript:if(confirm('http://www.championat.ru/football/_russiapl/151/player/9497.html \n\nThis file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address. \n\nDo you want to open it from the server?'))window.location='http://www.championat.ru/football/_russiapl/151/player/9497.html'" tppabs="http://www.championat.ru/football/_russiapl/151/player/9497.html" class=calendarlink> Россиянка</a></td>
<td style="text-align: center;">2</td>
<td style="text-align: center;">0</td>
<td style="text-align: center;">0</td>
<td style="text-align: center;">0</td>
<td style="text-align: center;">0</td>
<td style="text-align: center;">0</td>
<td style="text-align: center;">3</td>
</tr>
<tr class="tr_0">
<td width="40" style="text-align: center;">3</td>
<td width="45" style="text-align: center;">
<img src="br.gif" tppabs="http://st.championat.net/i/cflags/br.gif" width=16 height=11 alt='Бразилия' title='Бразилия' />
</td>
<td sortOrder='ШВСМ Измайлово'><a href="javascript:if(confirm('http://www.championat.ru/football/_russiapl/151/player/9497.html \n\nThis file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address. \n\nDo you want to open it from the server?'))window.location='http://www.championat.ru/football/_russiapl/151/player/9497.html'" tppabs="http://www.championat.ru/football/_russiapl/151/player/9497.html" class=calendarlink>ШВСМ Измайлово</a></td>
<td style="text-align: center;">4</td>
<td style="text-align: center;">4</td>
<td style="text-align: center;">8</td>
<td style="text-align: center;">5</td>
<td style="text-align: center;">2</td>
<td style="text-align: center;">2</td>
<td style="text-align: center;">3</td>
</tr>
<tr class="tr_0">
<td width="40" style="text-align: center;">4</td>
<td width="45" style="text-align: center;">
<img src="br.gif" tppabs="http://st.championat.net/i/cflags/br.gif" width=16 height=11 alt='Бразилия' title='Бразилия' />
</td>
<td sortOrder='Энергия'><a href="javascript:if(confirm('http://www.championat.ru/football/_russiapl/151/player/9497.html \n\nThis file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address. \n\nDo you want to open it from the server?'))window.location='http://www.championat.ru/football/_russiapl/151/player/9497.html'" tppabs="http://www.championat.ru/football/_russiapl/151/player/9497.html" class=calendarlink>Энергия</a></td>
<td style="text-align: center;">7</td>
<td style="text-align: center;">8</td>
<td style="text-align: center;">6</td>
<td style="text-align: center;">3</td>
<td style="text-align: center;">1</td>
<td style="text-align: center;">1</td>
<td style="text-align: center;">3</td>
</tr>
<tr class="tr_0">
<td width="40" style="text-align: center;">5</td>
<td width="45" style="text-align: center;">
<img src="br.gif" tppabs="http://st.championat.net/i/cflags/br.gif" width=16 height=11 alt='Бразилия' title='Бразилия' />
</td>
<td sortOrder='Рязань -ВДВ'><a href="javascript:if(confirm('http://www.championat.ru/football/_russiapl/151/player/9497.html \n\nThis file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address. \n\nDo you want to open it from the server?'))window.location='http://www.championat.ru/football/_russiapl/151/player/9497.html'" tppabs="http://www.championat.ru/football/_russiapl/151/player/9497.html" class=calendarlink>Рязань-ВДВ</a></td>
<td style="text-align: center;">5</td>
<td style="text-align: center;">7</td>
<td style="text-align: center;">7</td>
<td style="text-align: center;">8</td>
<td style="text-align: center;">3</td>
<td style="text-align: center;">3</td>
<td style="text-align: center;">3</td>
</tr>
<tr class="tr_0">
<td width="40" style="text-align: center;">6</td>
<td width="45" style="text-align: center;">
<img src="br.gif" tppabs="http://st.championat.net/i/cflags/br.gif" width=16 height=11 alt='Бразилия' title='Бразилия' />
</td>
<td sortOrder='УОР Звезда'><a href="javascript:if(confirm('http://www.championat.ru/football/_russiapl/151/player/9497.html \n\nThis file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address. \n\nDo you want to open it from the server?'))window.location='http://www.championat.ru/football/_russiapl/151/player/9497.html'" tppabs="http://www.championat.ru/football/_russiapl/151/player/9497.html" class=calendarlink>УОР Звезда</a></td>
<td style="text-align: center;">0</td>
<td style="text-align: center;">0</td>
<td style="text-align: center;">0</td>
<td style="text-align: center;">0</td>
<td style="text-align: center;">0</td>
<td style="text-align: center;">0</td>
<td style="text-align: center;">8</td>
</tr>
<tr class="tr_0">
<td width="40" style="text-align: center;">7</td>
<td width="45" style="text-align: center;">
<img src="br.gif" tppabs="http://st.championat.net/i/cflags/br.gif" width=16 height=11 alt='Бразилия' title='Бразилия' />
</td>
<td sortOrder='Зоркий'><a href="javascript:if(confirm('http://www.championat.ru/football/_russiapl/151/player/9497.html \n\nThis file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address. \n\nDo you want to open it from the server?'))window.location='http://www.championat.ru/football/_russiapl/151/player/9497.html'" tppabs="http://www.championat.ru/football/_russiapl/151/player/9497.html" class=calendarlink>Зоркий</a></td>
<td style="text-align: center;">0</td>
<td style="text-align: center;">0</td>
<td style="text-align: center;">0</td>
<td style="text-align: center;">0</td>
<td style="text-align: center;">0</td>
<td style="text-align: center;">0</td>
<td style="text-align: center;">6</td>
</tr>
<tr class="tr_0">
<td width="40" style="text-align: center;">8</td>
<td width="45" style="text-align: center;">
<img src="br.gif" tppabs="http://st.championat.net/i/cflags/br.gif" width=16 height=11 alt='Бразилия' title='Бразилия' />
</td>
<td sortOrder='Чертаново'><a href="javascript:if(confirm('http://www.championat.ru/football/_russiapl/151/player/9497.html \n\nThis file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address. \n\nDo you want to open it from the server?'))window.location='http://www.championat.ru/football/_russiapl/151/player/9497.html'" tppabs="http://www.championat.ru/football/_russiapl/151/player/9497.html" class=calendarlink>Чертаново</a></td>
<td style="text-align: center;">0</td>
<td style="text-align: center;">0</td>
<td style="text-align: center;">0</td>
<td style="text-align: center;">0</td>
<td style="text-align: center;">0</td>
<td style="text-align: center;">0</td>
<td style="text-align: center;">4</td>
</tr>
</tbody>
</table>