Adds sort bar into the theme's template page.
Moves page callback out to pages.inc file.