Support » Plugin: SportsPress - Sports Club & League Manager » Head-to-head only working with all other criteria disabled

  • Resolved cambofrizz

    (@cambofrizz)


    I’ve mentioned the following in my review: when in the League Table two clubs have equal points there’s the possibility to choose the head-to-head result as a ranking factor. Nice. However, for that to work you have to disable all other ranking factors (such as goal difference) because by default head-to-head is only the last criteria.

    Even when I set the goal difference sort order at 8 it first takes the overall goal difference, not the head-to-head-result. @sassha wrote in his reply to my review: “with one win each in the between matches”. I’m wondering if that is the bug, because that’s of course not always the outcome of 2 matches. In my case, the 2 clubs have had 1 win, and 1 draw. So, the club who had one win should be on top. It’s quite obvious that because of this result, the head-to-head goal difference is also in favour of the club that had the one win. However, that’s not happening in the League Table, where it’s the overall goal difference that takes precedence. That’s why I had to disable that ranking factor (and all other ranking factors) to get the right order.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Contributor Savvas

    (@savvasha)

    Hi @cambofrizz ,

    Can you please share a League Table were this H2H issue appears?

    When you are using the H2H feature, you are actually cheking ALL your rank criteria against only the teams that have equal points. So if for example you have set as 1st criterium the points, and 2nd criterium the goal differences it will check based on that the matches between those two teams.

    For example if match1 was Team1 WON and match2 was a DRAW, then the points will be 4 for Team1 and 1 for Team2. Obviously the Team1 will be above.
    If now match1 was finished Team1 2-0 Team2 and match2 was Team1 0-3 Team2, then they will have both 3 points, but in goal difference the Team2 will be above.

    Thanks,
    Savvas

    Thread Starter cambofrizz

    (@cambofrizz)

    Hi @savvasha

    Thanks for your reply. I’m afraid I cannot link to a league table, as I’m working on a local install for now.

    But we can still try to solve this. You write: “if for example you have set as 1st criterium the points, and 2nd criterium the goal differences it will check based on that the matches between those two teams”. No, that makes no sense at all. In some leagues the overall points and then the overall goal difference determine which team is on top. But in some other leagues, if the overall points are equal the second criteria should be the H2H result between the teams. That’s where I thought: “wow that H2H tiebreak thing is really cool”. However, it doesn’t happen, it will take the overall goal difference as a criteria, unless I disable the goal difference as a ranking factor. I’m not the first one to point this out, see here: https://wordpress.org/support/topic/problem-with-league-table-order/#post-11721606

    What I don’t understand is why this H2H criteria cannot be selected in the order of ranking factors, but is always the very last. It should be different (if selected) like suggested in the other support thread linked above and labelled by your co-contributor @rochesterj as “even better”.

    Plugin Contributor Savvas

    (@savvasha)

    Maybe I didn’t express myself right.
    My ranking criteria are:
    1. Points
    2. Goals for
    3. Goals difference
    4. H2H

    First the whole league table will be ranked based on all matches between all teams. If some teams have the same points, the second criteria will check the total goals scored by thise teams. If they are still even then it will check the goals difference. If agsin everything is even the H2H will come in action.
    In H2H the system will check again all the three criteria but now only between the matches that those teams played together. It will ignore every other match.

    Plugin Contributor Roch

    (@rochesterj)

    Hi there!

    Thanks for your message.

    What I said on that topic was just referring to the fact that the user upvoted an existing idea, instead of creating a new one. I didn’t say the idea itself was better or worse. In fact, there isn’t “better” or “worse” in development, just an approach that works for X, and another one that works for Y.

    What we have right now works for most of our customers and it does make sense for a lot of them. It surely could be improved (and we always appreciate feedback), but this requires a lot of coding.

    I can see how this doesn’t work for you, that’s why we have the adjustments. In a perfect world, we would have all ordering criteria for all possible rankings of all possible sports.

    But this is just impossible and we try our best providing a free product that works great for a lot of leagues.

    Please consider upvoting that idea in our ideaboard, and if you have any further suggestions, please send them as we’d be happy to discuss. We can’t promise that we will implement everything, but we will certainly keep them in mind for future updates.

    As for the issue itself, if I understood correctly you will need to use the adjustments as you need a single H2H criterion between other global ranking criteria.

    Thanks!

    Kind Regards,
    -Roch

    Thread Starter cambofrizz

    (@cambofrizz)

    So, in the end (where my requirement is to have H2H as the second criteria, after overall points), I’m correct to have to disable the goal difference as a ranking factor. Right?

    Just so you know that in many (major) soccer leagues that IS the second criteria. So, sorry, but saying “it works for most of our customers” does not impress me.

    And for upvoting the idea in your forum: I already did.

    Plugin Contributor Savvas

    (@savvasha)

    In Premier League (UK) are using the following:
    “Teams are ranked by total points, then goal difference, and then goals scored. If still equal, teams are deemed to occupy the same position. If there is a tie for the championship, for relegation, or for qualification to other competitions, a play-off match at a neutral venue decides rank.” https://www.premierleague.com/premier-league-explained

    In Champions League group stages (EU) are using the following:
    “`Head-to-head points between tied teams
    Head-to-head goal difference between tied teams
    Goals scored in head-to-head matches among tied teams
    Away goals scored in head-to-head matches among tied teams
    If more than two teams are tied, and after applying all head-to-head criteria above, a subset of teams are still tied, all head-to-head criteria above are reapplied exclusively to this subset of teams
    Goal difference in all group matches
    Goals scored in all group matches
    Away goals scored in all group matches
    Wins in all group matches
    Away wins in all group matches
    Disciplinary points (red card = 3 points, yellow card = 1 point, expulsion for two yellow cards in one match = 3 points)
    UEFA club coefficient`” https://www.goal.com/en-ie/news/goal-difference-or-head-to-head-how-every-major-football/1jax9vfriz1xs13jkdpf9qzhjo

    In Primera Division (Spain) are using the following:
    “Head-to-head points between tied teams
    Head-to-head goal difference between tied teams
    Goal difference” https://www.goal.com/en-ie/news/goal-difference-or-head-to-head-how-every-major-football/1jax9vfriz1xs13jkdpf9qzhjo

    In Bundesliga (Germany) are using the following:
    “Goal difference
    Goals scored for the entire season
    Head-to-head results (total points accumulated)
    Head-to-head goals scored
    Head-to-head away goals scored
    Total away goals scored for the entire season
    Playoff at neutral venue if relevant for deciding champion, relegation or participating in a European league, otherwise by draw.” https://www.goal.com/en-ie/news/goal-difference-or-head-to-head-how-every-major-football/1jax9vfriz1xs13jkdpf9qzhjo

    In Ligue 1 (France) are using the following:
    “Goal difference
    Higher number of goals scored
    Playoff at neutral venue if relevant for deciding champion, relegation or participating in a European league, otherwise by draw.”

    In Serie A (Italy) are using the following:
    “Head-to-head points
    Head-to-head goal difference
    Goal difference
    Higher number of goals scored
    Playoff at neutral venue if relevant for deciding champion, relegation or participating in a European league, otherwise by draw.”

    etc. etc.

    My point is that, there is not a single ranking rule for every league. Not even the major european soccer leagues.

    What we can possible do, is making the H2H criteria more flexible, by adding different ranking criteria than the current ones. I am not sure if the complexity that will add will be more in comparison with the usefullness 🙂

    Thanks,
    Savvas

    Thread Starter cambofrizz

    (@cambofrizz)

    OK, thanks for clarification, but why is it not possible to select where the H2H tiebreaker comes into play? That would solve some of the problems.

    Plugin Contributor Roch

    (@rochesterj)

    Hi cambofrizz

    Thanks for your reply.

    We just don’t have this feature right now. This is like asking “why can’t this car go over 300km/h?”, well it just wasn’t built for that. You can customize it to suit your needs, but this is not what the manufacturer had in its project.

    Like I said, in an ideal world, we would have all rules, for all leagues for all sports. But this is just not possible, so we built the features that would reach most people (as far as we could tell).

    It’s always unfortunate to see that it doesn’t suit your needs, and hopefully, we can add this in the future but at the moment this requires custom coding.

    Since our plugin is open source you can extend it in any way you want if this is a high priority for you.

    Thanks!

Viewing 8 replies - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.