Reordered index checks to a more logical location, based on the order of the document.