I’ve a couple of big sorted OwnedArray objects, A and B. And I need keep sorted both, so element A must be related to B.
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?