nodes: 0, module; 1, function_definition; 2, function_name:_sortAttributeValue; 3, parameters; 4, block; 5, identifier:self; 6, identifier:offset; 7, expression_statement; 8, if_statement; 9, return_statement; 10, comment:"""
          return the value of the sort attribute for the item at
          'offset' in the results of the last query, otherwise None.
          """; 11, attribute; 12, block; 13, else_clause; 14, identifier:pageStart; 15, identifier:self; 16, identifier:_currentResults; 17, expression_statement; 18, block; 19, assignment; 20, expression_statement; 21, identifier:pageStart; 22, tuple; 23, assignment; 24, subscript; 25, attribute; 26, identifier:pageStart; 27, None; 28, subscript; 29, attribute; 30, subscript; 31, identifier:storeID; 32, attribute; 33, identifier:offset; 34, attribute; 35, identifier:attributeID; 36, subscript; 37, string; 38, identifier:self; 39, identifier:_currentResults; 40, identifier:self; 41, identifier:currentSortColumn; 42, attribute; 43, identifier:offset; 44, string_content:__item__; 45, identifier:self; 46, identifier:_currentResults
code: def _sortAttributeValue(self, offset):
          """
          return the value of the sort attribute for the item at
          'offset' in the results of the last query, otherwise None.
          """
          if self._currentResults:
              pageStart = (self._currentResults[offset][
                  self.currentSortColumn.attributeID],
                           self._currentResults[offset][
                      '__item__'].storeID)
          else:
              pageStart = None
          return pageStart