Documentation ¶
Overview ¶
Package stablesort provides stable sorting of cloned slice elements
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func By ¶
func By[T any, o constraints.Ordered, TS ~[]T](elements TS, by func(T) o) TS
By makes clone of stable sorted elements by converting them to Ordered values and applying the operator <
func ByLess ¶ added in v0.0.6
ByLess makes clone and atanle sorts elements using a function that checks if an element is smaller than the others
func Of ¶
func Of[T constraints.Ordered, TS ~[]T](elements TS) TS
Of makes clone of stable sorted orderable elements
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.