MCPcopy Index your code
hub / github.com/go-task/task / AlphaNumeric

Function AlphaNumeric

internal/sort/sorter.go:19–22  ·  view source on GitHub ↗

AlphaNumeric sorts the JSON output so that tasks are in alpha numeric order by task name.

(items []string, namespaces []string)

Source from the content-addressed store, hash-verified

17// AlphaNumeric sorts the JSON output so that tasks are in alpha numeric order
18// by task name.
19func AlphaNumeric(items []string, namespaces []string) []string {
20 slices.Sort(items)
21 return items
22}
23
24// AlphaNumericWithRootTasksFirst sorts the JSON output so that tasks are in
25// alpha numeric order by task name. It will also ensure that tasks that are not

Callers 2

TestAlphaNumeric_SortFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestAlphaNumeric_SortFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…