order documents, fixes #1