def sort_with_list(*fields, direction)
      option(fields) do |options, query|
        fields.flatten.compact.each do |field|
          add_sort_option(options, field, direction)
        end
        query.pipeline.push("$sort" => options[:sort]) if aggregating?
      end
    end
def sort_with_list(*fields, direction)
      option(fields) do |options, query|
        fields.flatten.compact.each do |field|
          add_sort_option(options, field, direction)
        end
        query.pipeline.push("$sort" => options[:sort]) if aggregating?
      end
    end
Add multiple sort options at once.

 @api private

 @example Add multiple sort options.
   optional.sort_with_list(:name, :dob, 1)

 @param [ Array<String> ] fields The field names.
 @param [ Integer ] direction The sort direction.

 @return [ Optional ] The cloned optional.

 @since 1.0.0