For all intervals [x, y), Visit will visit intervals in ascending order sorted by x. Also fixes a bug where Visit would not terminate the search when requested by the visitor function.