Skip to content

Commit febe465

Browse files
committed
Document options.sortKeys for dumper
1 parent 70e7e3d commit febe465

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
Unreleased
2+
----------
3+
4+
- Allow options.sortKeys to specify that keys should be sorted when dumping, to
5+
enable deterministic output.
6+
17
3.3.0 / 2015-04-26
28
------------------
39

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,8 @@ options:
175175
block to flow style for collections. -1 means block style everwhere
176176
- `styles` - "tag" => "style" map. Each tag may have own set of styles.
177177
- `schema` _(default: `DEFAULT_SAFE_SCHEMA`)_ specifies a schema to use.
178+
- `sortKeys` _(default: `false`)_ - if `true`, sort keys when dumping YAML. If a
179+
function, use the function to sort the keys.
178180

179181
styles:
180182

0 commit comments

Comments
 (0)