Extract query pattern from operations.

def sort_pattern(self):
        """Extract query pattern from operations."""
        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