sort by options working