Return the first assigned category as parent for top-level page

Remove code to sort a page's categories alphabetically