NativeSortExtension
Extension methods for sorting collections.
Read time 1 minuteLast updated 13 days ago
Definition
- Type: Class
- Namespace: Unity.Collections
- Assembly: UnityEngine.ManagedKernelModule
public static class NativeSortExtension
Static Methods
Method | Description |
|---|---|
| BinarySearch | Finds a value in a sorted array by binary search. |
| Sort | Sorts an array in ascending order. |
| SortIndices | Sorts a span of indices by comparing a read-only span of values of type T, using a custom comparer. |
| SortJob | Returns a job which will sort an array in ascending order. |
| SortJobDefer | Returns a job which will sort this list in ascending order. |
Structs
Struct | Description |
|---|---|
| NativeSortExtension.DefaultComparer<T> | A comparer that uses IComparable.CompareTo(). For primitive types, this is an ascending sort. |