(self, iocs)
return
Sort IOCs by severity, confidence
Sort IOCs by severity, confidence
Sort IOCs by severity confidence
def sort_iocs(self, iocs):
        """
        Sort IOCs by severity, confidence
        """
        for item in sorted(iocs, key=lambda x: (x.get('severity', 0), x.get('confidence', 0)), reverse=True):
            yield item
        return
def sort_iocs ( self , iocs ) : for item in sorted ( iocs , key = lambda x : ( x . get ( 'severity' , 0 ) , x . get ( 'confidence' , 0 ) ) , reverse = True ) : yield item return