Documentation ¶
Overview ¶
Package ordered provides common sort ordering types.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BySliceIDs ¶
BySliceIDs implements the sort.Interface sorting a slice of []graph.Node lexically by the IDs of the []graph.Node.
func (BySliceIDs) Len ¶
func (c BySliceIDs) Len() int
func (BySliceIDs) Less ¶
func (c BySliceIDs) Less(i, j int) bool
func (BySliceIDs) Swap ¶
func (c BySliceIDs) Swap(i, j int)
type BySliceValues ¶
type BySliceValues [][]int64
BySliceValues implements the sort.Interface sorting a slice of []int64 lexically by the values of the []int64.
func (BySliceValues) Len ¶
func (c BySliceValues) Len() int
func (BySliceValues) Less ¶
func (c BySliceValues) Less(i, j int) bool
func (BySliceValues) Swap ¶
func (c BySliceValues) Swap(i, j int)
type LinesByIDs ¶
LinesByIDs implements the sort.Interface sorting a slice of graph.LinesByIDs lexically by the From IDs, then by the To IDs, finally by the Line IDs.
func (LinesByIDs) Len ¶
func (n LinesByIDs) Len() int
func (LinesByIDs) Less ¶
func (n LinesByIDs) Less(i, j int) bool
func (LinesByIDs) Swap ¶
func (n LinesByIDs) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.