Comparators as op-amp integrator
Unlike an op amp, comparators generally have no internal frequency compensation, so therefore a comparator won't be unity-gain stable. There is no way to know what open-loop frequency would yield 180 degree phase shift. The equivalent circuit diagram for LM339 supports this generalization. ( http://www.onsemi.com/pub/Collateral/LM339-D.PDF )