// Native slice public unsafe static void Sort <T>(this NativeSlice <T> slice) where T : struct, IComparable <T> { slice.Sort(new DefaultComparer <T>()); }
/// <summary> /// Sorts the container in ascending order. /// </summary> /// <typeparam name="T">Source type of elements</typeparam> /// <param name="container">The container to perform sort.</param> /// <param name="inputDeps">The job handle or handles for any scheduled jobs that use this container.</param> /// <returns>A new job handle containing the prior handles as well as the handle for the job that sorts /// the container.</returns> public unsafe static JobHandle Sort <T>(this NativeSlice <T> container, JobHandle inputDeps) where T : unmanaged, IComparable <T> { return(container.Sort(new DefaultComparer <T>(), inputDeps)); }