Revert "Do double sort of documents."

This reverts commit e781a8d1c0bd219a008f23a26f7af5e36ed950ed.