Reorder the documents.