Sorting by Y axis position

Hi
I’m making a top down game. I set Transparency Sort Mode to Custom Axis and Transparency Sort Axis to 0, 1, 0. The problem is that some of my sprites are taller than the other (frame animation). When the taller sprite is active, it is sorted behind smaller sprite, even if they are on the same Y axis, or the taller one is even lower.

How can I fix it?

I made a video on sprite sorting

https://www.youtube.com/watch?v=bLxC069dJfg

it might be the anchor on the sprite. this is what determines the position on the y axis

change pivot point of all sprites to the feet of the character