Sort xml files, so order is constant

Makes xml format work better with version control systems.
This commit is contained in:
est31 2015-05-01 02:53:41 +02:00
parent 5c6b31c024
commit b2b5143678
6 changed files with 58 additions and 18 deletions

View file

@ -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 ) {