package
Version:
v0.0.19
Opens a new window with list of versions in this module.
Published: Nov 15, 2025
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package stablesort provides stable sorting of cloned slice elements
Asc makes clone of stable sorted orderable elements
func By[T any, O cmp.Ordered, TS ~[]T](elements TS, orderConverter func(T) O) TS
By makes clone of stable sorted elements by converting them to Ordered values and applying the operator <
func ByLess[T any, TS ~[]T](elements TS, comparer func(T, T) int) TS
ByLess makes clone and atanle sorts elements using a function that checks if an element is smaller than the others
Source Files
¶
Click to show internal directories.
Click to hide internal directories.