# SortJobDefer<T, U>

> Returned by the SortJobDefer methods of NativeSortExtension. Call Schedule to schedule the sorting.

## Definition

* **Type:** Struct
* **Namespace:** [Unity.Collections](/engine/6000.7/script-reference/unity/collections.md)
* **Assembly:** UnityEngine.ManagedKernelModule

```csharp
public struct SortJobDefer<T, U> where T : unmanaged where U : IComparer<T>
```

## Remarks

When `RegisterGenericJobType` is used on SortJobDefer, to complete registration you must register `SortJobDefer<T,U>.SegmentSort` and `SortJobDefer<T,U>.SegmentSortMerge`.

## Fields

| Value                                                                           | Description          |
| ------------------------------------------------------------------------------- | -------------------- |
| [Comp](/engine/6000.7/script-reference/unity/collections/sortjobdefer2/comp.md) | Comparison function. |
| [Data](/engine/6000.7/script-reference/unity/collections/sortjobdefer2/data.md) | The data to sort.    |

## Methods

| Method                                                                                  | Description         |
| --------------------------------------------------------------------------------------- | ------------------- |
| [Schedule](/engine/6000.7/script-reference/unity/collections/sortjobdefer2/schedule.md) | Schedules this job. |

## Structs

| Struct                                                                                                                      | Description            |
| --------------------------------------------------------------------------------------------------------------------------- | ---------------------- |
| [SortJobDefer\<T, U>.SegmentSort](/engine/6000.7/script-reference/unity/collections/sortjobdefer2/segmentsort.md)           | For internal use only. |
| [SortJobDefer\<T, U>.SegmentSortMerge](/engine/6000.7/script-reference/unity/collections/sortjobdefer2/segmentsortmerge.md) | For internal use only. |
