static NSInteger sortedProperties()

in Framework/ROADSerialization/ROADSerialization/XML/RFAttributedXMLCoder.m [76:88]


static NSInteger sortedProperties(id oneProperty, id secondProperty, void *context)
{
    NSInteger result = NSOrderedSame;
    RFXMLSerializable *oneXmlAttributes = [oneProperty attributeWithType:[RFXMLSerializable class]];
    RFXMLSerializable *secondXmlAttributes = [secondProperty attributeWithType:[RFXMLSerializable class]];
    
    if (oneXmlAttributes.isTagAttribute && isDefineNamespace(RFSerializationKeyForProperty((RFPropertyInfo *)oneProperty)))
        result = NSOrderedAscending;
    else if (secondXmlAttributes.isTagAttribute && isDefineNamespace(RFSerializationKeyForProperty((RFPropertyInfo *)secondProperty)))
        result = NSOrderedDescending;
    
    return result;
}