fix the list sort and the redirect issue