minor fix to make sure message thread is sorted correctly, in chronological order