> For the complete documentation index, see [llms.txt](https://docs.opensports.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.opensports.net/admin-help/leagues-and-tournaments/scores-and-standings/how-to-add-head-to-head-sorting-to-standings-template.md). Agents can also search and read this documentation through its [MCP server](https://docs.opensports.net/~gitbook/mcp).

# How to add head-to-head sorting to a standings template

Break ties in standings based on direct matchups

### What is Head-to-Head Sorting? <a href="#what-is-head-to-head-sorting" id="what-is-head-to-head-sorting"></a>

Head-to-Head Sorting is a feature that allows you to automatically break ties between teams that have the same win/loss record by comparing their performance against each other.

Instead of relying on secondary stats like point differential or fair play, this method prioritizes how tied teams performed in direct matchups—making it especially useful in competitive leagues or tournaments.

### How it works: <a href="#how-it-works" id="how-it-works"></a>

* When two teams are tied, the system compares their results against one another to determine who ranks higher.
* If more than two teams are tied, head-to-head sorting only applies if all tied teams have played each other the same number of times.
* If they haven’t, the system cannot apply head-to-head logic, and the teams will remain tied unless another sorting rule is applied.

This gives organizers a more accurate and fair way to reflect competitive results in the standings.

### How to set this up <a href="#how-to-set-this-up" id="how-to-set-this-up"></a>

1. Locate **Group Profile > Dashboard**
2. Select **Leagues & Tournaments**, and click the league you'd like to add a **Head-to-Head Sorting** rule to
3. Click **Edit** on the left hand side and scroll down to **Standings Template** and select **Manage Template** and **Create Template**

<figure><img src="https://2891648156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0wiYYBkqAIGYXcHa3EDw%2Fuploads%2Fgit-blob-cfe64b09a257ef0a805a2b3eeab932f7b8cc5f3a%2Fhead-to-head-standings-template-selector.webp?alt=media" alt=""><figcaption></figcaption></figure>

4. Load a preset standings template or leave it blank to create a custom template

* Enter Title and Associated Sport

5. Scroll to **Sorting** and use the drop down menu titled **Head-to-Head Sorting Rule** to select from the following:

* Points, Matches Played, Wins, Ties, Losses, Goals For
* Once selected, create a label and description, and set the sort direction

<figure><img src="https://2891648156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0wiYYBkqAIGYXcHa3EDw%2Fuploads%2Fgit-blob-070833fa88b74581449f728eed914212a594d7e6%2Fstandings-head-to-head-sorting-menu.webp?alt=media" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2891648156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0wiYYBkqAIGYXcHa3EDw%2Fuploads%2Fgit-blob-b248b87da78aa0caf4b9c9bc5c061d6122af1788%2Fstandings-head-to-head-points-sorting-rule.webp?alt=media" alt=""><figcaption></figcaption></figure>

6. Enter values for **Points**
7. View the columns and a summary of the Standings Template in **Preview**.
8. Click **Create** once all information has been reviewed.

Let us know how you’re using this new flexibility in your competitions!


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.opensports.net/admin-help/leagues-and-tournaments/scores-and-standings/how-to-add-head-to-head-sorting-to-standings-template.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
