diff options
author | Jay Doane <jaydoane@apache.org> | 2023-05-09 13:12:20 -0700 |
---|---|---|
committer | Jay Doane <jaydoane@apache.org> | 2023-05-09 13:12:20 -0700 |
commit | 34ade482eb474d16d42a96ebe977af96d18ade05 (patch) | |
tree | 19a9a3c26f1a522b27ee0e7c96795fb91b84f896 | |
parent | 786408e08d8db3164be67c53d8a35de8973f0b39 (diff) | |
download | couchdb-34ade482eb474d16d42a96ebe977af96d18ade05.tar.gz |
Sort lists from maps
The undocumented order of elements in lists generated from maps changed
in OTP 26, so enforce old order by sorting them.
-rw-r--r-- | src/couch_log/src/couch_log_trunc_io.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/couch_log/src/couch_log_trunc_io.erl b/src/couch_log/src/couch_log_trunc_io.erl index 9736e87e1..c330edb33 100644 --- a/src/couch_log/src/couch_log_trunc_io.erl +++ b/src/couch_log/src/couch_log_trunc_io.erl @@ -352,7 +352,7 @@ map_body(Map, Max, #print_options{depth = Depth}) when Max < 4; Depth =:= 0 -> _ -> {"...", 3} end; map_body(Map, Max, Options) -> - case maps:to_list(Map) of + case lists:sort(maps:to_list(Map)) of [] -> {[], 0}; [{Key, Value} | Rest] -> |