diff options
author | Lily Foster <lily@lily.flowers> | 2021-12-28 10:10:58 -0500 |
---|---|---|
committer | Lily Foster <lily@lily.flowers> | 2021-12-28 10:11:00 -0500 |
commit | 92c7d33ee32b9597fedee5f7371de54c0a10a5a5 (patch) | |
tree | 691a8ee7f856ecd0c5a19598ada9a2010fb91cae /src/libexpr | |
parent | 0e90b13ab1df925e549b5d55853b65911b4b40d3 (diff) |
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
Diffstat (limited to 'src/libexpr')
-rw-r--r-- | src/libexpr/primops/fromTOML.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libexpr/primops/fromTOML.cc b/src/libexpr/primops/fromTOML.cc index 221c40db9..30466fc5b 100644 --- a/src/libexpr/primops/fromTOML.cc +++ b/src/libexpr/primops/fromTOML.cc @@ -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: |