MCPcopy Create free account
hub / github.com/docker/docker-language-server / sortItems

Function sortItems

internal/compose/completion.go:366–371  ·  view source on GitHub ↗
(items []protocol.CompletionItem)

Source from the content-addressed store, hash-verified

364}
365
366func sortItems(items []protocol.CompletionItem) []protocol.CompletionItem {
367 slices.SortFunc(items, func(a, b protocol.CompletionItem) int {
368 return strings.Compare(a.Label, b.Label)
369 })
370 return items
371}
372
373func processItems(items []protocol.CompletionItem, arrayPrefix bool) *protocol.CompletionList {
374 items = sortItems(items)

Callers 2

CompletionFunction · 0.85
processItemsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected