MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / ownerRank

Function ownerRank

packages/plugins/toolkits/src/page.tsx:239–239  ·  view source on GitHub ↗
(owner: Owner)

Source from the content-addressed store, hash-verified

237
238const compareConnectionGroups = (a: ToolkitConnectionGroup, b: ToolkitConnectionGroup): number => {
239 const ownerRank = (owner: Owner) => (owner === "org" ? 0 : 1);
240 return (
241 ownerRank(a.owner) - ownerRank(b.owner) ||
242 a.integration.localeCompare(b.integration) ||

Callers 1

compareConnectionGroupsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected