---
title: ascending
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/nssortdescriptor/ascending
---

# ascending

A Boolean value that indicates whether the receiver specifies sorting in ascending order.

## Declaration

```swift
var ascending: Bool { get }
```

## Discussion

Discussion true if the receiver specifies sorting in ascending order, otherwise false.

## See Also

### Getting Information About a Sort Descriptor

- [key](foundation/nssortdescriptor/key.md)
- [keyPath](foundation/nssortdescriptor/keypath.md)
- [selector](foundation/nssortdescriptor/selector.md)
- [comparator](foundation/nssortdescriptor/comparator.md)
