Adding logic to sort pages on index page by page name (alphabetically)