Add sorting to home page