added a condition to ignore modifiers with attributeIDs of zero.
Removed error message from dgmTypeAttributes when no attributes were found, some types have no attributes!
Corrected factor sort order function.