# Get Leaderboard Sort Method

<figure><img src="https://3297306079-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg1K5dkF1SAyaDZJSID0b%2Fuploads%2F8ke0ZlIWnskCd0ussmhw%2FNodeRender_Transparent_20250630_171033_8.png?alt=media&#x26;token=48f72c25-6374-43ba-a325-3ffff5013aba" alt=""><figcaption></figcaption></figure>

### 📄 <mark style="color:yellow;">Description</mark> <a href="#description" id="description"></a>

Retrieves the sort method (e.g., Ascending, Descending) for a given Steam leaderboard, which determines how scores are ordered.

{% tabs %}
{% tab title="Inputs" %}
<table><thead><tr><th width="200">Name</th><th>Description</th></tr></thead><tbody><tr><td><strong>Leaderboard ID</strong></td><td>The ID for the leaderboard you want to get data for.</td></tr></tbody></table>
{% endtab %}

{% tab title="Outputs" %}
<table><thead><tr><th width="200">Name</th><th>Description</th></tr></thead><tbody><tr><td><strong>On Success</strong></td><td>Executes if the sort method was successfully retrieved.</td></tr><tr><td><strong>On Fail</strong></td><td>Executes if the Steam API is not validated or the leaderboard sort method could not be determined.</td></tr><tr><td><a href="enums/sortmethod"><strong>Sort Method</strong></a></td><td>The retrieved sort method for the leaderboard. Defaults to Ascending on failure.</td></tr></tbody></table>
{% endtab %}
{% endtabs %}
