your are on the right track, but you need to make some small changes
page2.Property["PagePeerOrder"].Value = defaultSortOrder;
Thanks a lot - that works great...
I need to write a UI plugin which resets a list of pages to a default sort order.
However, I cannot work out how to programatically change the sort order of a page
I have tried using PagePeerOrder property of the PageData object but this is read-only
foreach (PageData page in newsItemPages)
page["PagePeerOrder"] = defaultSortOrder;
Is it possible to programatically change the sort order of a page?
thanks a lot