Move message sort from messagelist to model