sort

package
v0.0.0-...-0798a42 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSortCriteria

func GetSortCriteria(args []string) ([]*types.SortCriterion, error)

func SortBy

func SortBy(toSort []uint32, sortBy []uint32)

Sorts toSort by sortBy so that toSort becomes a permutation following the order of sortBy. toSort should be a subset of sortBy

func SortStringBy

func SortStringBy(s []string, order []string)

SortStringBy sorts the string slice s according to the order given in the order string slice.

Types

This section is empty.

Jump to

Keyboard shortcuts

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