the selection of the next reference depending on the result of the preceding comparison contains no documents