Fix sort order of viewpages in the sidebar