Sort categories and tags listings

Add code to sort lists of categories and tags in alphabetical order
Improve consistency and code cleanup

Modify pages to improve overall site consistency, reset variables to
nil after use for better overall code cleanliness