Removed array sorting - moved to template.php