MCPcopy Create free account
hub / github.com/cogentcore/core / sortBys

Method sortBys

filetree/node.go:430–434  ·  view source on GitHub ↗

sortBys determines how to sort the selected files in the directory. Default is alpha by name, optionally can be sorted by modification time.

(modTime bool)

Source from the content-addressed store, hash-verified

428// sortBys determines how to sort the selected files in the directory.
429// Default is alpha by name, optionally can be sorted by modification time.
430func (fn *Node) sortBys(modTime bool) { //types:add
431 fn.SelectedFunc(func(sn *Node) {
432 sn.sortBy(modTime)
433 })
434}
435
436// sortBy determines how to sort the files in the directory -- default is alpha by name,
437// optionally can be sorted by modification time.

Callers

nothing calls this directly

Calls 2

SelectedFuncMethod · 0.95
sortByMethod · 0.80

Tested by

no test coverage detected