I know this has been closed but one point to note, I have made MessageInfo comparable from the start based on timestamps so doing a sort from the collections class is probably easier.