Ensuring returned results are in the correct order.