<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 18.0.0 -",
    "macOS: 15.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/ModelSortGroupComponent/order",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation23ModelSortGroupComponentV5orders5Int32Vvp"
  },
  "title" : "order"
}
-->

# order

An integer value that represents when the renderer draws the model
relative to other the models in its group.

```
var order: Int32 { get set }
```

## Discussion

The renderer draws models in ascending order, starting with the
components with the smallest value.
You can tell the renderer that it only needs to order entities by their
depths by setting the component’s [`order`](/documentation/RealityKit/ModelSortGroupComponent/order) property to the sam value
for those entities.

> Warning: Don’t set `order` to `Int32.max` or `Int32.min` because the
> framework reserves these as sentinel values, and assigning their values
> may trigger erratic behavior.

---

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)