Some of the tiles in the Tilemap completely ignore the sorting and just go over everything

Yeah so basically i was trying to use the isometric Z as Y to make my enviorment but when trying to place the pipes they just go over everythinhg instead of being sorted like the other tiles.
The only thing i can understand is that every tile that has this problem comes from another set of sprites, but i can’t see the difference, they all have the same proprieties.

here are some screenshots
grid:

tilemap:

the sprites of the correct tiles

the sprite of the problematic tiles:

Update: i don’t freaking know what happened but i open up the project again and now the situation is the opposite

i even tried to take the pipes on a separate palette but it didn’t change much

Solved by myself, i had to put the sort mode to “custom axis”