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 70eab27
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 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,11 @@ const searchOptions = {
function sort(stories, sortStoriesByKind) {
if (!sortStoriesByKind) return stories;

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

function flattenStories(items) {
Expand Down

0 comments on commit 70eab27

Please sign in to comment.