Can you help me with adding new sorting criteria to my ranking? I need modify my ranking to volleyball and I need second sorting criteria: sets ratio (sets won/lost).
I modyfied /views/ranking/tmpl/efault_rankingrows.php to show sets ratio in ranking but I have trouble with sorting by it.
echo '<td valign="top" style="text-align:center;';
if ( $color != '' )
echo 'background-color:' . $color;
printf( $format, sprintf( "%.2F", ($showRow->sum_team1_result)/($showRow->sum_team2_result) ));
How can I modyfy /helpers/ranking.php? I tryied to use defined function goalAvg() (line 1101)? In line 791 is function _cmpAvg which use goalAvg() but after adding "AVG" criteria in admin, sorting is not correct?
Thank you and best regards.