---
title: orderObject
framework: driverkit
role: symbol
role_heading: Instance Method
path: driverkit/osorderedset/orderobject
---

# orderObject

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

## Declaration

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

## Parameters

- `anObject`: The object to be ordered.

## Return Value

Return Value The ordering value for the object.

## Discussion

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.
