Sort keys for deterministic Facts order in JSON
commit3890e475aa7107cdc649a5eaea92ea1e99441de8
authorLeo Osvald <leoo@fb.com>
Fri, 28 Jun 2019 21:40:48 +0000 (28 14:40 -0700)
committerHhvm Bot <hhvm-bot@users.noreply.github.com>
Fri, 28 Jun 2019 21:51:19 +0000 (28 14:51 -0700)
tree702f160d74eba0fdc4f81d21cb88fe7b8500d224
parent7fe02e29e6258dfd77f6e73eb1e696064349f33f
Sort keys for deterministic Facts order in JSON

Summary:
Unblock the path to using FactsParser in Rust by making JSON output
deterministic (this is by both Hack tests and HHVM tests!) by sorting fields.

Reviewed By: shiqicao

Differential Revision: D16046621

fbshipit-source-id: dcd9e99b109c44ae1756862091a55a9eaabdd369
hphp/hack/src/hh_single_compile.ml
hphp/hack/test/rust/facts_json.ml
hphp/test/slow/dv_array/ext_factparse.php.expectf
hphp/test/slow/dv_array_hack_arr/ext_factparse.php.expectf
hphp/test/slow/ext_factparse/ext_factparse.php.expectf