here the messages are displaying in a wrong order the sender message of how are you doing?
should be at the bottom of the receiver message of hi heelo
how to sort the time ? and here is the code , please help me thanks in advance
{ newArr ? newArr.map((m) => {
return <div className={m.type === "sent" ? 'media media-chat media-chat-reverse' : 'media media-chat'}><p>{m.msg}</p>
<p>{m.date}</p>
</div>
}) : null }