Add order by for DOCUMENT_QUERY
Deal with multiple documents
Add testdata