ordered

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Overview

Package ordered provides common sort ordering types.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ByID

func ByID(n []graph.Node)

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(c [][]int64)

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

func Int64s

func Int64s(s []int64)

Int64s sorts a slice of int64.

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.

func Reverse

func Reverse(nodes []graph.Node)

Reverse reverses the order of nodes.

Types

This section is empty.

Jump to

Keyboard shortcuts

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