Subject: | Sort keys for dumped data |
When dumping you should sort keys, otherwise it makes problems when put `all_tables.json` into git
git diff -b -w --ignore-blank-lines share/fixtures/1/conf/all_tables.json
diff --git a/share/fixtures/1/conf/all_tables.json b/share/fixtures/1/conf/all_tables.json
index 77b6a2b..a059b74 100644
--- a/share/fixtures/1/conf/all_tables.json
+++ b/share/fixtures/1/conf/all_tables.json
@@ -1,12 +1,12 @@
{
- "might_have" : {
+ "belongs_to" : {
"fetch" : 0
},
"sets" : [],
- "has_many" : {
+ "might_have" : {
"fetch" : 0
},
- "belongs_to" : {
+ "has_many" : {
"fetch" : 0
}
}