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 sort provides sorting of cloned slice elements
Asc sorts orderable elements ascending
func By[T any, O cmp.Ordered, TS ~[]T](elements TS, orderConverner func(T) O) TS
By sorts cloned elements slice in ascending order, using the orderConverner function to retrieve a value of type Ordered.
Desc sorts orderable elements descending
func DescBy[T any, O cmp.Ordered, TS ~[]T](elements TS, orderConverner func(T) O) TS
DescBy sorts cloned elements slice in descending order, using the orderConverner function to retrieve a value of type Ordered.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.