Add notion of order/sorting  to list_documents.