diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2021-12-29 00:03:10 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-29 00:03:10 +0100 |
commit | ed3bc63666732bdc0724f2e53c14935a9f0f6fe7 (patch) | |
tree | 691a8ee7f856ecd0c5a19598ada9a2010fb91cae | |
parent | 0e90b13ab1df925e549b5d55853b65911b4b40d3 (diff) | |
parent | 92c7d33ee32b9597fedee5f7371de54c0a10a5a5 (diff) |
Merge pull request #5841 from lilyinstarlight/fix-fromtoml-attrs
Sort attrs from tables in fromTOML
-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: |