diff options
author | Dan Gudmundsson <[email protected]> | 2016-12-05 10:35:43 +0100 |
---|---|---|
committer | Dan Gudmundsson <[email protected]> | 2016-12-05 10:35:43 +0100 |
commit | c5fa3721bbe6ea3742703a4662f94a11c2a4d5c1 (patch) | |
tree | 1d3340f54437f3e98810d530b1c96d9e4e5d0972 | |
parent | 443e4c8f4345486e501b9bd3b37b9c773cdf3ba0 (diff) | |
parent | 30ea1dce5f98636315726af13a8944f0963f447a (diff) | |
download | otp-c5fa3721bbe6ea3742703a4662f94a11c2a4d5c1.tar.gz otp-c5fa3721bbe6ea3742703a4662f94a11c2a4d5c1.tar.bz2 otp-c5fa3721bbe6ea3742703a4662f94a11c2a4d5c1.zip |
Merge branch 'richcarl/mnesia/table_info_order' into maint
* richcarl/mnesia/table_info_order:
Preserve key order in mnesia:table_info
-rw-r--r-- | lib/mnesia/src/mnesia.erl | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/mnesia/src/mnesia.erl b/lib/mnesia/src/mnesia.erl index 5bf2fc2dc3..34efeca4fa 100644 --- a/lib/mnesia/src/mnesia.erl +++ b/lib/mnesia/src/mnesia.erl @@ -1882,9 +1882,10 @@ any_table_info(Tab, Item) when is_atom(Tab) -> [] -> abort({no_exists, Tab, Item}); Props -> - lists:map(fun({setorbag, Type}) -> {type, Type}; - (Prop) -> Prop end, - Props) + Rename = fun ({setorbag, Type}) -> {type, Type}; + (Prop) -> Prop + end, + lists:sort(lists:map(Rename, Props)) end; name -> Tab; |