---
title: "sortIndicatorRect(forBounds:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nstableheadercell/sortindicatorrect(forbounds:)"
---

# sortIndicatorRect(forBounds:)

Returns the location to display the sorting indicator given theRect.

## Declaration

```swift
func sortIndicatorRect(forBounds rect: NSRect) -> NSRect
```

## Parameters

- `rect`: A cell rectangle.

## Return Value

Return Value The rectangle within theRect that should contain the sorting indicator.

## See Also

### Drawing Sorting Indicators

- [drawSortIndicator(withFrame:in:ascending:priority:)](appkit/nstableheadercell/drawsortindicator(withframe:in:ascending:priority:).md)
