Hi,
are you sure that code is not working? I have just tested similar code sample and it worked correctly.:
CMS.TreeEngine.TreeProvider tree = new CMS.TreeEngine.TreeProvider();
tree.MergeResults = true;
tree.SortMergedResults = true;
DataSet ds = tree.SelectNodes(CMSContext.CurrentSiteName, "/%", CMSContext.PreferredCultureCode, true, "cms.news;cms.article", "DocumentMenuItemHideInNavigation = 'False'", "NodeLevel, NodeOrder, NodeName ASC", -1, true, CMSContext.CurrentDocument.NodeGUID, "isrelatedto", false, 6, "");
DataView dv = ds.Tables[0].DefaultView;
}
I inserted the code on home document. Then in the content tree I had news and articles document (mixed up).
Then I created a relationship so that home document was on the right site in relation (that is a reason why I changed the parameter from true to false.
Finally, I change order by condition as NodeOrder can be same for several documents.
With above condition are documents selected in the order they exist in the content tree.
You can see it if you open dataview (DataView dv = ds.Tables[0].DefaultView;) in debug window.
Best regards,
Ivana Tomanickova