• kypo

    (@kypo)


    Hi, I use this plugin for Ice Hockey.
    Everithing works fine, but i have a little problem in Players table.

    Players table is sorted by points (P) – that is OK.
    But if two players have the same number of points – then i need to sort players by goals, not by Games played (GP).

    It is possible to set this sorting somewhere in config?

    Thanks for help.

    https://www.ads-software.com/plugins/sportspress/

Viewing 4 replies - 1 through 4 (of 4 total)
  • jirithegreat

    (@jirithegreat)

    Hi,

    I have same problem.

    Its true, i have exactly same problem.

    Could be possible sort players statistics by two different parameters, not only one? For example: primary by points but when two player have same number of point by Games Played or Goals?

    Actually, as it works in league tables?

    Thanks.

    Same problem here.

    Anyone figure out a way to add a secondary sort?

    Plugin Author Brian

    (@brianmiyaji)

    @kypo @jiri.the.great @alibagil @cmkeddy

    This is definitely something that we’d like to add in a future update. As of now, player lists will only sort by a single column, but here’s a workaround for multi-column sorting by adding an additional hidden column. Using @kypo’s example, we want to sort by points, then games played. Try this:

    1. From SportsPress > Configure, scroll down to Statistics and add a new statistic called “Sorting”.
    2. Using the equation builder, set it up so that the equation is something like:

    Sorting = Points + Played ÷ 100

    3. Change decimal places (rounding) to 2 and publish.
    4. Edit the player list, and select “Sorting” from the “Columns” box (Statistics tab).
    5. In the Details section, change “Sort By” to “Sorting”.
    6. Save changes to see the new column. You’ll see decimal places in some of the values under this column.
    7. Make sure that the checkbox next to the “Sorting” column is unticked so that it doesn’t appear when viewing the list.

    The player list should now be sorting by the invisible “Sorting” column, which contains a value that is equal to the “P” column plus 2 decimal places representing the “GP” column.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Players table sorting (ice hockey)’ is closed to new replies.