functioning w/ sort option in w/ menu