Stratifications for moduli of sheaves and quiver representations