This project has moved. For the latest updates, please go here.

Cannot add Override='TRUE' to OrderBy.


There is not a way currently to express the override attribute of an order by clause such as this example:

<OrderBy Override='TRUE'><FieldRef Name='ID'></OrderBy>

I tried using the overload that accepts existingOrderBy; however, it strips the Override attribute off. Also, since there is no way to only include an existingOrderBy field it duplicated the FieldRef element.


sadomovalex wrote Dec 18, 2015 at 10:30 AM

hi zyzil,
thank you for the feedback. Yes, at the moment there is no possibility to specify Override attribute for OrderBy element by code (you may add it still to resulting string .Replace("<OrderBy", "<OrderBy Override='TRUE'")). I added it to development tasks list