Skip to content

Commit

Permalink
refactor: update sorting value
Browse files Browse the repository at this point in the history
  • Loading branch information
francoischalifour committed Oct 1, 2019
1 parent 2d03a57 commit bb36e27
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions .storybook/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@ addParameters({
return 0;
}

return categories.indexOf(categoryA) < categories.indexOf(categoryB)
? -1
: 1;
return categories.indexOf(categoryA) - categories.indexOf(categoryB);
},
},
});
Expand Down

0 comments on commit bb36e27

Please sign in to comment.