diff --git a/dist/bundle.es.js b/dist/bundle.es.js index 129ae72..903f824 100644 --- a/dist/bundle.es.js +++ b/dist/bundle.es.js @@ -3878,7 +3878,7 @@ const selectKnownTagsByName = reselect.createSelector(selectState$7, state => st const selectFollowedTagsList = reselect.createSelector(selectState$7, state => state.followedTags); -const selectFollowedTags = reselect.createSelector(selectFollowedTagsList, followedTags => followedTags.map(tag => ({ name: tag }))); +const selectFollowedTags = reselect.createSelector(selectFollowedTagsList, followedTags => followedTags.map(tag => ({ name: tag })).sort((a, b) => a.name.localeCompare(b.name))); const selectUnfollowedTags = reselect.createSelector(selectKnownTagsByName, selectFollowedTagsList, (tagsByName, followedTags) => { const followedTagsSet = new Set(followedTags); diff --git a/src/redux/selectors/tags.js b/src/redux/selectors/tags.js index 20f88f9..c6b9889 100644 --- a/src/redux/selectors/tags.js +++ b/src/redux/selectors/tags.js @@ -15,7 +15,8 @@ export const selectFollowedTagsList = createSelector( export const selectFollowedTags = createSelector( selectFollowedTagsList, - (followedTags: Array): Array => followedTags.map(tag => ({ name: tag })) + (followedTags: Array): Array => + followedTags.map(tag => ({ name: tag })).sort((a, b) => a.name.localeCompare(b.name)) ); export const selectUnfollowedTags = createSelector(