Sort xml files, so order is constant
Makes xml format work better with version control systems.
This commit is contained in:
@@ -456,6 +456,15 @@ bool Variant::operator==(const Variant& p_variant) const {
|
||||
|
||||
}
|
||||
|
||||
bool Variant::operator<(const Variant& p_variant) const {
|
||||
if (type!=p_variant.type) //if types differ, then order by type first
|
||||
return type<p_variant.type;
|
||||
bool v;
|
||||
Variant r;
|
||||
evaluate(OP_LESS,*this,p_variant,r,v);
|
||||
return r;
|
||||
}
|
||||
|
||||
bool Variant::is_zero() const {
|
||||
|
||||
switch( type ) {
|
||||
|
||||
Reference in New Issue
Block a user