Version: Unity 6.7 Beta (6000.7)
LanguageEnglish
  • C#

NativeSortExtension

class in Unity.Collections

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

Extension methods for sorting collections.

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.