MCPcopy Create free account
hub / github.com/codeaashu/claude-code / sortKeys

Function sortKeys

src/utils/plugins/loadPluginHooks.ts:239–240  ·  view source on GitHub ↗
(o: T | undefined)

Source from the content-addressed store, hash-verified

237 // Array fields (strictKnownMarketplaces, blockedMarketplaces) have
238 // schema-stable order.
239 const sortKeys = <T extends Record<string, unknown>>(o: T | undefined) =>
240 o ? Object.fromEntries(Object.entries(o).sort()) : {}
241 return jsonStringify({
242 enabledPlugins: sortKeys(merged.enabledPlugins),
243 extraKnownMarketplaces: sortKeys(merged.extraKnownMarketplaces),

Callers 1

Calls 1

entriesMethod · 0.80

Tested by

no test coverage detected