Skip to content

Commit

Permalink
Fix tests in node 11 by using Array#sort correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
Hypnosphi committed Nov 5, 2018
1 parent 9f9a261 commit 0106721
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/info/src/components/Story.js
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ class Story extends Component {
extract(children);

const array = Array.from(types.keys());
array.sort((a, b) => getName(a) > getName(b));
array.sort((a, b) => (getName(a) > getName(b) ? 1 : -1));

propTables = array.map((type, i) => (
// eslint-disable-next-line react/no-array-index-key
Expand Down

0 comments on commit 0106721

Please sign in to comment.