Sorting and message deletion working.