Add sorting by preference