text-manipulation > "buffer/utils"
▸ cmp(a: TextPosition, b: TextPosition): number
Parameters:
Param | Type |
---|---|
a | TextPosition |
b | TextPosition |
Returns: number
▸ sortRange(range: [TextPosition, TextPosition]): [TextPosition, TextPosition]
Sort the provided range
Parameters:
Param | Type | Description |
---|---|---|
range | [TextPosition, TextPosition] | - |
Returns: [TextPosition, TextPosition]