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