Chat formatting and sorting.