code: def rowsBeforeValue(self, value, count):
          if value is None:
              query = self.inequalityQuery(None, count, False)
          else:
              pyvalue = self._toComparableValue(value)
              currentSortAttribute = self.currentSortColumn.sortAttribute()
              query = self.inequalityQuery(
                  currentSortAttribute < pyvalue, count, False)
          return self.constructRows(query)[::-1]