sort

package
v0.0.0-...-c2048ef Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: MIT Imports: 6 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 []models.UID, sortBy []models.UID)

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