We are trying to search multiples NotesDocuments from an agent in a database to a view in another database. We then proceed to add those documents to a NotesDocumentCollection with the function AddDocument (NotesDocumentCollection - LotusScript®)
but when we iterate through that collection,after adding all the documents, it is unsorted.
After reading the AddDocument function it says only the ViewEntryCollections and DocumentCollections created from FTSearch are sorted, all other Collections are inserted using an internal algorithm.
Maybe this function could have a boolean that specifies if you want that Collection sorted with the algorithm or you could add the documents like an array.