further refactored handler.js to include private function for getsubs method
sorting when pulling subs and feeds