Corners in non-equiregular sub-Riemannian manifolds