Sort xml files, so order is constant
Makes xml format work better with version control systems.
This commit is contained in:
parent
5c6b31c024
commit
b2b5143678
6 changed files with 58 additions and 18 deletions
|
|
@ -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 ) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue