---
schema_version: "1"
id: 2fc9bc250ee6e4c174f494e2e8d1283532e3caca6890eff6662c3c4dfab01766
title: AskDataExtensionSortOrder
collection: tableau
version: current
locale: en-us
portal_url: https://docs.salesforce.com/tableau/current/en-us/api/metadata_api/reference/askdataextensionsortorder.doc.md
canonical_url: https://help.tableau.com/current/api/metadata_api/en-us/reference/askdataextensionsortorder.doc.html
source_site: help.tableau.com
content_type: documentation
content_hash: b8a817df724cb6063e4db0d29b9c8c309fdfb5db47490ca3bb62de62a2f551b2
---
_menu_ Types

INPUT\_OBJECT

# AskDataExtensionSortOrder

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 AskDataExtensionSortOrder {  - # GraphQL field to sort on - field: [AskDataExtensionOrderField](https://help.tableau.com/current/api/metadata_api/en-us/reference/askdataextensionorderfield.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

- [Dashboard_A dashboard contained in a published workbook._](https://help.tableau.com/current/api/metadata_api/en-us/reference/dashboard.doc.html "Dashboard - A dashboard contained in a published workbook.")

- [Lens_Lenses are curated, embeddable Ask Data experiences. \*Introduced in Tableau Cloud June 2022 / Server 2022.3.\* \*Retired in Tableau Cloud February 2024 / Server 2024.2.\*_](lens.doc.html "Lens - Lenses are curated, embeddable Ask Data experiences.  
    *Introduced in Tableau Cloud June 2022 / Server 2022.3.*  
    *Retired in Tableau Cloud February 2024 / Server 2024.2.*")

- [Query_Query root for Metadata GraphQL interface_](https://help.tableau.com/current/api/metadata_api/en-us/reference/query.doc.html "Query - Query root for Metadata GraphQL interface")