diff --git a/app/utils/categories.ts b/app/utils/categories.ts index 7b2d3e604..91f9afadc 100644 --- a/app/utils/categories.ts +++ b/app/utils/categories.ts @@ -180,7 +180,9 @@ const sortChannelsByName = (notifyPropsPerChannel: Record>, locale: string) => { if (sorting === 'recent') { return channelsWithMyChannel.sort((cwmA, cwmB) => { - return cwmB.myChannel.lastPostAt - cwmA.myChannel.lastPostAt; + const a = Math.max(cwmA.myChannel.lastPostAt, cwmA.channel.createAt); + const b = Math.max(cwmB.myChannel.lastPostAt, cwmB.channel.createAt); + return b - a; }).map((cwm) => cwm.channel); } else if (sorting === 'manual') { return channelsWithMyChannel.sort((cwmA, cwmB) => {