redirects working properly, sorting added