code: public static CmsSearchConfigurationSorting create(
          final String sortParam,
          final List<I_CmsSearchConfigurationSortOption> options,
          final I_CmsSearchConfigurationSortOption defaultOption) {
  
          return (null != sortParam) || ((null != options) && !options.isEmpty()) || (null != defaultOption)
          ? new CmsSearchConfigurationSorting(sortParam, options, defaultOption)
          : null;
      }
docs: Creates a sort configuration iff at least one of the parameters is not null and the options list is not empty.
  @param sortParam The request parameter used to send the currently chosen search option.
  @param options The available sort options.
  @param defaultOption The default sort option.
  @return the sort configuration or null, depending on the arguments.