It seems to me that in all DICOM files I checked, the attributes are sorted by their tag, in increasing order, with the pixel data at the end. I checked the DICOM standard, but I cannot find anything on this.
Is the order of attributes in a DICOM file guaranteed?