MCPcopy
hub / github.com/VSCodeVim/Vim / sorted

Function sorted

src/common/motion/position.ts:119–121  ·  view source on GitHub ↗
(p1: Position, p2: Position)

Source from the content-addressed store, hash-verified

117 * @returns the given Positions in the order they appear in the document.
118 */
119export function sorted(p1: Position, p2: Position): [Position, Position] {
120 return p1.isBefore(p2) ? [p1, p2] : [p2, p1];
121}
122
123declare module 'vscode' {
124 interface Position {

Callers 15

execActionFunction · 0.90
runMethod · 0.90
runMethod · 0.90
runMethod · 0.90
execFunction · 0.90
getReplaceRangeMethod · 0.90
execMethod · 0.90
searchCurrentSelectionFunction · 0.90
getSearchRangesFunction · 0.90
execMethod · 0.90
execMethod · 0.90
execMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected