<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -",
    "tvOS: 15.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 8.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "TabularData",
  "identifier" : "/documentation/TabularData/Order",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "TabularData"
    ],
    "preciseIdentifier" : "s:11TabularData5OrderO"
  },
  "title" : "Order"
}
-->

# Order

A type that represents a sort ordering.

```
enum Order
```

## Topics

### Getting the Properties

[`case ascending`](/documentation/TabularData/Order/ascending)

A sort ordering that starts with the lowest value and monotonically proceeds to higher values.

[`case descending`](/documentation/TabularData/Order/descending)

A sort ordering that starts with the highest value and monotonically proceeds to lower values.

[`func areOrdered<T>(T, T) -> Bool`](/documentation/TabularData/Order/areOrdered(_:_:))

Returns a Boolean that indicates whether the comparable types match the order’s state.

## Relationships

### Conforms To

[`Equatable`](/documentation/Swift/Equatable)

[`Sendable`](/documentation/Swift/Sendable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Hashable`](/documentation/Swift/Hashable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)