protected function onBeforeWrite()
 {
     parent::onBeforeWrite();
     if (!$this->Sort) {
         $this->Sort = MemberProfileField::get()->max('Sort') + 1;
     }
 }