---
schema_version: "1"
id: 931f0fe14dc4d6329867e882546e13afabe962f964db4e3099e425e3340b2954
title: MetricOrderField
collection: tableau
version: current
locale: en-us
portal_url: https://docs.salesforce.com/tableau/current/en-us/api/metadata_api/reference/metricorderfield.doc.md
canonical_url: https://help.tableau.com/current/api/metadata_api/en-us/reference/metricorderfield.doc.html
source_site: help.tableau.com
content_type: documentation
content_hash: ecae5d2614098888faa937935a34355726fc8c9ca2b3a5a5c608d39385c8e461
---
_menu_ Types

ENUM

# MetricOrderField

Enum for fields that can be used for sorting

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

`   - enum MetricOrderField {  - # Sort by owner count - OWNER_COUNT  - # Sort by containerName - CONTAINER_NAME  - # Sort by id - ID  - # Sort by luid - LUID  - # Sort by name - NAME  - # Sort by projectName - PROJECT_NAME  - # Sort by vizportalUrlId - VIZPORTAL_URL_ID - }   `

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

- [MetricSortOrder_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/metricsortorder.doc.html "MetricSortOrder - 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.")