code: def _get_rows(self, options):
          if options["oldsortslice"]:
              rows = copy.deepcopy(self._rows[options["start"]:options["end"]])
          else:
              rows = copy.deepcopy(self._rows)
          if options["sortby"]:
              sortindex = self._field_names.index(options["sortby"])
              rows = [[row[sortindex]] + row for row in rows]
              rows.sort(reverse=options["reversesort"], key=options["sort_key"])
              rows = [row[1:] for row in rows]
          if not options["oldsortslice"]:
              rows = rows[options["start"]:options["end"]]
          return rows