Does SortingGroup work with 2d graphics in ECS?

I’m working on a small 2d ECS project where there will be hundred of zombies to shoot at. I tried to get SortingGroup to work with sprites in hierarchies of entities but couldn’t get sort order to work with them.

First, we shouldn’t assume I did everything correctly, this could be my fault. But OTOH SortingGroup normally works with hierarchies of game objects, so if they did not work with sprites in a hierachy of entities I wouldn’t be entirely surprised either.

So, is there a way to get them to work together? And further, are there other parts of 2d graphics one can expect to not work, such as sprite skins etc?