internal/core/export: sort conjuncts in binary expressions
This is to help reduce diffs in Unity.
It sorts both the values in adt.Conjunction as well as
adt.BinaryExpr. In the latter case, it first flattens
the three, then sorts, then rebuilds the binary tree.
Signed-off-by: Marcel van Lohuizen <mpvl@gmail.com>
Change-Id: I9fa6b91816a15c3a6cfa78c25b34851bd791011e
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1205862
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>