Skip to content

Commit

Permalink
Don't sort keys if the object is an array.
Browse files Browse the repository at this point in the history
  • Loading branch information
clangen-nw authored and elrob committed Jan 26, 2021
1 parent e2ca308 commit d386ade
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/components/DataTypes/Object.js
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ class RjvObject extends React.PureComponent {
let elements = [],
variable;
let keys = Object.keys(variables || {});
if (this.props.sortKeys) {
if (this.props.sortKeys && object_type !== 'array') {
keys = keys.sort();
}

Expand Down

0 comments on commit d386ade

Please sign in to comment.