<!--
{
  "availability" : [
    "DriverKit: -",
    "iOS: -",
    "iPadOS: -",
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "DriverKit",
  "identifier" : "/documentation/DriverKit/OSOrderedSet/orderObject",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "DriverKit"
    ],
    "preciseIdentifier" : "c:@S@OSOrderedSet@F@orderObject#*1$@S@OSMetaClassBase#"
  },
  "title" : "orderObject"
}
-->

# orderObject

Calls the ordered set’s order function against a `NULL` object.

```
int32_t orderObject(const OSMetaClassBase *anObject);
```

## Parameters

`anObject`

The object to be ordered.

## Return Value

The ordering value for the object.

## Discussion

This function calls the ordered set’s order function with `anObject`, `NULL`, and the ordering context (or `NULL` if none was set), and returns the result of that function.

---

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)