MCPcopy Create free account
hub / github.com/PerpetualSoftware/pad / ValidSort

Function ValidSort

internal/needs/cursor.go:20–22  ·  view source on GitHub ↗

ValidSort reports whether s names a sort.

(s string)

Source from the content-addressed store, hash-verified

18
19// ValidSort reports whether s names a sort.
20func ValidSort(s string) bool {
21 return s == SortAge || s == SortImportance || s == SortSimplicity
22}
23
24// Key is a row's place in the total order of one sort. Age orders by (waiting
25// since, created, item id) ascending. The score sorts order by the primary

Callers 1

handleMeNeedsMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected