ordered the modified query