---
title: orderedIndex
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nswindow/orderedindex
---

# orderedIndex

The zero-based position of the window, based on its order from front to back among all visible application windows.

## Declaration

```swift
var orderedIndex: Int { get set }
```

## Discussion

Discussion If you set this property to an index that’s out of range, the system sets the position to the nearest value that’s in range.

## See Also

### Getting Information About Scripting Attributes

- [hasCloseBox](appkit/nswindow/hasclosebox.md)
- [hasTitleBar](appkit/nswindow/hastitlebar.md)
- [isModalPanel](appkit/nswindow/ismodalpanel.md)
- [isFloatingPanel](appkit/nswindow/isfloatingpanel.md)
- [isZoomable](appkit/nswindow/iszoomable.md)
- [isResizable](appkit/nswindow/isresizable.md)
- [isMiniaturizable](appkit/nswindow/isminiaturizable.md)
