Fish Wang says to YSITDreturn channels .filter(function (channel) { return !!channel.lastMessage; }) .sort(function(channel0, channel1) { return channel0.lastMessage.time.getTime() > channel1.lastMessage.time.getTime() ? -1 : 1; })at Fri, May 4, 2018 1:04 AM