Maintains tab sort order for doc type imports/exports.

Added SortOrder to XML for document types (used by export)
Added ability for doctype importer to set the sort order if a sort order element is available