Sort messages by Order attribute.