order

package
v0.15.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 16, 2024 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Overview

Package order provides common sorting functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ByID

func ByID[S ~[]E, E graph.Node](n S)

ByID sorts a slice of graph.Node by ID.

func BySliceIDs

func BySliceIDs(c [][]graph.Node)

BySliceIDs sorts a slice of []graph.Node lexically by the IDs of the []graph.Node.

func BySliceValues

func BySliceValues[S ~[]E, E cmp.Ordered](c []S)

BySliceValues sorts a slice of []cmp.Ordered lexically by the values of the []cmp.Ordered.

func LinesByIDs

func LinesByIDs(n []graph.Line)

LinesByIDs sort a slice of graph.LinesByIDs lexically by the From IDs, then by the To IDs, finally by the Line IDs.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL