Playing with tilemap layers sorting?

So I have a tilemap which the layer is sorted to make an effect like this:

8398578--1108779--upload_2022-8-29_15-54-4.png

But when I’m in front of the table, the tilemap looks like this

8398578--1108782--upload_2022-8-29_15-55-2.png

This could happen because the player is tall and colliding with the top of the table.

Is there a way to prevent this happened without changing the player sprites?
The layer is sorted from (deepest to shallow)
0: table
1: player
2: top of the table

Add New sorting layers, and your issue is fixed

In what order should I put the new sorting layers?

put the player on top:
0: table
1: top of the table
2: player

I haven’t tested it yet, but if I do that I can’t get the effect from the first picture right?