(child1, child2)
| 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. |
nothing calls this directly
no test coverage detected