(a: AgentGraphTraceEdge, b: AgentGraphTraceEdge)
| 352 | } |
| 353 | |
| 354 | function compareEdges(a: AgentGraphTraceEdge, b: AgentGraphTraceEdge): number { |
| 355 | return ( |
| 356 | compareAgentGraphIdentity(a.fromOperatorId, b.fromOperatorId) || |
| 357 | compareAgentGraphIdentity(a.toOperatorId, b.toOperatorId) || |
| 358 | compareAgentGraphIdentity(a.edgeId, b.edgeId) |
| 359 | ); |
| 360 | } |
| 361 | |
| 362 | function insertSorted(values: string[], value: string): void { |
| 363 | const index = values.findIndex((candidate) => compareAgentGraphIdentity(value, candidate) < 0); |
nothing calls this directly
no test coverage detected