Added sorting of pages tree and page children.