got the sorter on the home page working