---
schema_version: "1"
id: 0263047b73b7b5d9bb4b7fcdbd59401ebec6f060879b142327e30423a07af509
title: MetricDefinitionOrderField
collection: tableau
version: next
locale: en-us
portal_url: https://docs.salesforce.com/tableau/next/en-us/api/metadata_api/reference/metricdefinitionorderfield.doc.md
canonical_url: https://help.tableau.com/v0.0/api/metadata_api/en-us/reference/metricdefinitionorderfield.doc.html
source_site: help.tableau.com
content_type: documentation
content_hash: 1bf93825d8ec71a7a7a417c5ac4019532a53cb25bab50749935d3c2df4775f1b
---
_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/v0.0/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.")