Ordinal comparison. See the note on determinism in the file header.
(a: string, b: string)
| 210 | |
| 211 | /** Ordinal comparison. See the note on determinism in the file header. */ |
| 212 | function compareText(a: string, b: string): number { |
| 213 | if (a === b) { |
| 214 | return 0; |
| 215 | } |
| 216 | return a < b ? -1 : 1; |
| 217 | } |
| 218 | |
| 219 | /** |
| 220 | * A callee the index would not resolve, as the honest reference to it. |