---
schema_version: "1"
id: 0983d21f1a0664853500585748266ea6460108babeef253224328f36136e649a
title: AnalyticsFieldSortOrder
collection: tableau
version: current
locale: en-us
portal_url: https://docs.salesforce.com/tableau/current/en-us/api/metadata_api/reference/analyticsfieldsortorder.doc.md
canonical_url: https://help.tableau.com/current/api/metadata_api/en-us/reference/analyticsfieldsortorder.doc.html
source_site: help.tableau.com
content_type: documentation
content_hash: a7eac8976fbe86c1ab558ae6b3fbeb6b75a60f73f0a25a9594fd3bcbfe1a99ba
---
_menu_ Types

INPUT\_OBJECT

# AnalyticsFieldSortOrder

Sort by given fields. The sort orders defined first in the list will take priority. If there are no given sort orders or a tie on the final sorted field then the resulting set will be sorted by ID in ascending order.

## [_link_](#graphql-schema-definition) GraphQL Schema definition

`   - input AnalyticsFieldSortOrder {  - # GraphQL field to sort on - field: [AnalyticsFieldOrderField](https://help.tableau.com/current/api/metadata_api/en-us/reference/analyticsfieldorderfield.doc.html)!  - # Order direction to sort output - direction: [OrderDirection](https://help.tableau.com/current/api/metadata_api/en-us/reference/orderdirection.doc.html)! - }   `

## [_link_](#require-by) Require by

This element is not required by anyone