---
title: "areOrdered(_:_:)"
framework: tabulardata
role: symbol
role_heading: Instance Method
path: "tabulardata/order/areordered(_:_:)"
---

# areOrdered(_:_:)

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

## Declaration

```swift
func areOrdered<T>(_ lhs: T, _ rhs: T) -> Bool where T : Comparable
```

## Parameters

- `lhs`: A comparable type.
- `rhs`: Another comparable type.

## See Also

### Getting the Properties

- [Order.ascending](tabulardata/order/ascending.md)
- [Order.descending](tabulardata/order/descending.md)
