group messages by trip