---
updatedAt: 2026-05-13T09:05:39.000Z
---

# Get Specified Sort Order

Determines the sort order for returned topics

# Details

This parameter control the information you get back when requesting the top topics in a stream. Two sets of topics are returned: top and total. The top section returns the topics with the highest count over the last minute (with single minute counts), whereas the total section returns all-time count.

**Type:** string
**Default:** count desc
**Possible Values:**
count desc
count asc
position desc
position asc

[block:callout]
{
  "type": "info",
  "body": "`position asc` returns topics in the order they have been configured within Experiences. If matching configuration is important, we recommend using `sort=position asc` in conjunction with `all_topics=1(below)`"
}
[/block]

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "stream-api",
    "version": "1.1"
  },
  "servers": [
    {
      "url": "https://api.massrelevance.com"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "oauth2",
        "flows": {
          "clientCredentials": {
            "tokenUrl": "https://example.com/oauth2/token",
            "scopes": {}
          }
        }
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/{account}/{streamName}/meta.json?sort": {
      "get": {
        "summary": "Get Specified Sort Order",
        "description": "Determines the sort order for returned topics",
        "operationId": "get-specified-sort-order",
        "parameters": [
          {
            "name": "account",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "streamName",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "default": "position asc"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "text/plain": {
                "examples": {
                  "Result": {
                    "value": "Coming Soon"
                  }
                }
              }
            }
          }
        },
        "deprecated": false,
        "security": []
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": false,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```