forked from lix-project/lix
Sort attrs from tables in fromTOML
This was dropped in 10a8b5d
for the migration from cpptoml to toml11 but
seems to be necessary for the attrsets to work correctly.
Fixes #5833
This commit is contained in:
parent
0e90b13ab1
commit
92c7d33ee3
|
@ -31,6 +31,8 @@ static void prim_fromTOML(EvalState & state, const Pos & pos, Value * * args, Va
|
|||
auto & v2 = *state.allocAttr(v, state.symbols.create(elem.first));
|
||||
visit(v2, elem.second);
|
||||
}
|
||||
|
||||
v.attrs->sort();
|
||||
}
|
||||
break;;
|
||||
case toml::value_t::array:
|
||||
|
|
Loading…
Reference in a new issue