MCPcopy Index your code
hub / github.com/nodejs/node / compareChildren

Function compareChildren

test/fixtures/snapshot/typescript.js:141316–141319  ·  view source on GitHub ↗
(child1, child2)

Source from the content-addressed store, hash-verified

141314 children.sort(compareChildren);
141315 }
141316 function compareChildren(child1, child2) {
141317 return ts.compareStringsCaseSensitiveUI(tryGetName(child1.node), tryGetName(child2.node)) // TODO: GH#18217
141318 || ts.compareValues(navigationBarNodeKind(child1), navigationBarNodeKind(child2));
141319 }
141320 /**
141321 * This differs from getItemName because this is just used for sorting.
141322 * We only sort nodes by name that have a more-or-less "direct" name, as opposed to `new()` and the like.

Callers

nothing calls this directly

Calls 2

tryGetNameFunction · 0.85
navigationBarNodeKindFunction · 0.85

Tested by

no test coverage detected