set pagechildorder programatically

Vote:
 
How can I set the pagechildorderrule of a page programatically? I tried rootPage.Property["PageChildOrderRule"].Value = FilterSortOrder.Alphabetical; but it doesn't seem to do anything. When I check the page in editmode afterwards the pagechildorderrule is still 1 (should be 3) and the childpages are still sorted according to when they were created, not alphabetically. I can change it in editmode, but when I create pages programatically it's not very optimal to have to go into editmode and change them afterwards :s
#13315
Mar 25, 2008 18:36
Vote:
 
my mistake, forgot to save the page after changing the property :)
#15591
Mar 25, 2008 18:47
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.