unsafe public static void Sort <T>(this NativeArray <T> array) where T : struct, IComparable <T> { array.Sort(new DefaultComparer <T>()); }