sort chaged messages