pub fn ordered(a: TextPos, b: TextPos) -> (TextPos, TextPos)
Order two positions so the first is not after the second (a selection dragged “backwards” — up or left — still resolves correctly).