diff --git a/app/components/sidebars/main/channels_list/list/index.js b/app/components/sidebars/main/channels_list/list/index.js index a3b3aa56e..5e1ddb673 100644 --- a/app/components/sidebars/main/channels_list/list/index.js +++ b/app/components/sidebars/main/channels_list/list/index.js @@ -5,7 +5,7 @@ import {connect} from 'react-redux'; import {General} from 'mattermost-redux/constants'; import { - getFavoriteChannelIds, + getSortedFavoriteChannelIds, getSortedUnreadChannelIds, getOrderedChannelIds, } from 'mattermost-redux/selectors/entities/channels'; @@ -39,7 +39,7 @@ function mapStateToProps(state) { const isSystemAdmin = checkIsSystemAdmin(roles); const sidebarPrefs = getSidebarPreferences(state); const unreadChannelIds = getSortedUnreadChannelIds(state, null); - const favoriteChannelIds = getFavoriteChannelIds(state); + const favoriteChannelIds = getSortedFavoriteChannelIds(state); const orderedChannelIds = filterZeroUnreads(getOrderedChannelIds( state, null,