---
schema_version: "1"
id: 8c0baf2e96bf3816bac488d5e3d71a955a2f0b6753984320acec86704ea7a31d
title: MetricDefinitionOrderField
collection: tableau
version: current
locale: en-us
portal_url: https://docs.salesforce.com/tableau/current/en-us/api/metadata_api/reference/metricdefinitionorderfield.doc.md
canonical_url: https://help.tableau.com/current/api/metadata_api/en-us/reference/metricdefinitionorderfield.doc.html
source_site: help.tableau.com
content_type: documentation
content_hash: 7960f1095a9da45b6c7f5d7e9fb749517bbca2e1155b5d7895dd3354d834909b
---
_menu_ Types

ENUM

# MetricDefinitionOrderField

Enum for fields that can be used for sorting

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

`   - enum MetricDefinitionOrderField {  - # Sort by fields count - FIELDS_COUNT  - # Sort by id - ID  - # Sort by luid - LUID  - # Sort by name - NAME - }   `

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

- [MetricDefinitionSortOrder_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._](https://help.tableau.com/current/api/metadata_api/en-us/reference/metricdefinitionsortorder.doc.html "MetricDefinitionSortOrder - 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.")