Improve the sorting message list by date - refs #7402