parameters: (self, options)
return_statement: return rows
docstring: Return only those data rows that should be printed, based on slicing and sorting.
  
          Arguments:
  
          options - dictionary of option settings.
docstring_summary: Return only those data rows that should be printed, based on slicing and sorting.
docstring_tokens: Return only those data rows that should be printed based on slicing and sorting .
function: def _get_rows(self, options):
          """Return only those data rows that should be printed, based on slicing and sorting.
  
          Arguments:
  
          options - dictionary of option settings."""
  
          # Make a copy of only those rows in the slice range
          rows = copy.deepcopy(self._rows[options["start"]:options["end"]])
          # Sort if necessary
          if options["sortby"]:
              sortindex = self._field_names.index(options["sortby"])
              # Decorate
              rows = [[row[sortindex]] + row for row in rows]
              # Sort
              rows.sort(reverse=options["reversesort"], key=options["sort_key"])
              # Undecorate
              rows = [row[1:] for row in rows]
          return rows
function_tokens: def _get_rows ( self , options ) : # Make a copy of only those rows in the slice range rows = copy . deepcopy ( self . _rows [ options [ "start" ] : options [ "end" ] ] ) # Sort if necessary if options [ "sortby" ] : sortindex = self . _field_names . index ( options [ "sortby" ] ) # Decorate rows = [ [ row [ sortindex ] ] + row for row in rows ] # Sort rows . sort ( reverse = options [ "reversesort" ] , key = options [ "sort_key" ] ) # Undecorate rows = [ row [ 1 : ] for row in rows ] return rows