public static function GetSortField() {
      $SortField = C('Vanilla.Discussions.SortField', 'd.DateLastComment');
      if (C('Vanilla.Discussions.UserSortField'))
         $SortField = Gdn::Session()->GetPreference('Discussions.SortField', $SortField);
      
      return $SortField;  
   }