using TimeSync for sorting chat messages