League positionsif level on points | Peter's Sports League Standings | Forum
Back to the sports standings script page
Topic RSS
League positionsif level on points
Yes. If you are using version 1.2, you must modify standings.php as follows:
At about line 292:
(teamwins + teamties + teamlosses + teamforfeits) AS gamesplayed,
Add this below that line:
(teamrf - teamra) AS rundifference,
Then, you can change the sort order for sorting by points, at about line 167:
case 10: // Sort by points
$sort_order = "points DESC, rundifference DESC, teamwins DESC, winningpct DESC, teamorder DESC"; break;
$sort_order = "points DESC, rundifference DESC, teamwins DESC, winningpct DESC, teamorder DESC"; break;