I have an array of SwXTextRanges that I would like to sort by their start position in the document, check for overlaps, and then process.
I checked the XTextRange interface, and I don’t think it allows for something like this. I also checked the fields of the instances in the debugger, and the DocumentIndex sounds like that it could be what I’m looking for, but it’s always Variant/Empty.
Is there any way to actually do this?