Skip to content

Commit

Permalink
sorting by kind and nested stories
Browse files Browse the repository at this point in the history
  • Loading branch information
dioxmio committed Aug 5, 2018
1 parent 44b36a7 commit ca647aa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/ui/src/modules/ui/libs/filters.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ const searchOptions = {
function sort(stories, sortStoriesByKind) {
if (!sortStoriesByKind) return stories;

return sortBy(stories, ['kind']);
return sortBy(stories, ['kind']).map(item =>
Object.assign({}, item, { stories: item.stories.sort() })
);
}

function flattenStories(items) {
Expand Down

0 comments on commit ca647aa

Please sign in to comment.