
07-27-2009, 08:58 PM
|
|
|
Join Date: Apr 2009
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by Elenna
Auto Number - Don't forget to add in "autonum=1" to your table definition.
For the sorting, it goes by column number. In your example, you are using column 15 and 16, with 16 sorting in descending order, and then by column 16 in ascending order.
If you do not have 16 columns, change those numbers to the column number.
If you want to sort it by number of points (descending) and then number of matches played (ascending), then your code could look like this:
[table="head;sort=4d,3;autonum=1;autonumtitle=Rank; width=12em"]#|CLUBNAME|MATCHES|POINTS
1|Team A|3|16
2|Team B|3|18
3|Team C|4|20
4|Team D|3|13
5|Team E|5|23
6|Team F|4|21
7|Team G|3|25[/table]
But if you wanted it to sort by the number of matches played (descending) and then number of points, it would look like this:
[table="head;sort=3d,4;autonum=1;autonumtitle=Rank; width=12em"]#|CLUBNAME|MATCHES|POINTS
1|Team A|3|16
2|Team B|3|18
3|Team C|4|20
4|Team D|3|13
5|Team E|5|23
6|Team F|4|21
7|Team G|3|25[/table]
|
Fu.... fantastic Elenna thaank you very much..
|