code: def sort_pattern(self):
          
          if not self._sort_pattern:
  
              # trigger evaluation of operation
              if self.operation in ['query', 'getmore']:
                  self._sort_pattern = self._find_pattern('orderby: ')
  
          return self._sort_pattern
docs: Extract query pattern from operations.