Ordering of document types