fix redirect after new message
sort messages by descending order
order messages by descending order