code: def validate_sort_fields(self):
          
          sort_fields = ','.join(self.options.sort_fields)
          if sort_fields == '*':
              sort_fields = self.get_output_fields()
  
          return formatting.validate_sort_fields(sort_fields or config.sort_fields)
docs: Take care of sorting.