OwnedArray::addSorted() Feature request

I’ve a couple of big sorted OwnedArray objects, A and B. And I need keep sorted both, so element A[5] must be related to B[5].

I’d like that A.addSorted() would return the position where would be placed a new object. So if I know where is the element in A I could use B.insert() in the second one. That, I think, would be faster than use A.indexOfSorted() to get the index and do B.insert() or use B.addSorted() again.

Could it be possible?

Yes, that’s a good suggestion, thanks!