Auto sorting overlapping tiles on different layers

In my level I want to have trees slightly overlap in dense forests like this:

Manually sorting them on all the layers, especially if 3 or more trees overlap, is very tedious and time-consuming. Are there any extensions that handle this action, or do I have to make it myself (I really don’t want to touch JavaScript if I don’t have to).

I saw some people suggest using whole images but that is not an option. The trees have to be individual tiles.

I wrote the engine myself, and I am not sacrificing the current system’s advantages over this feature.

Different solutions are proposed in my tip sheet here: Tiled Tip Sheet
tl;dr: You can make it so each tree is just a single oversized tile so they’ll overlap visually without overwriting each other (which you mentioned is not an option), or you can auto-sort the tiles into different layers either by saving a stamp with the pre-sorted tiles, or by using Automapping, depending on which you find more convenient to work with.

Either way if you want auto-sorting you’ll need to pre-decide which tiles you want on which layer, and how much flexibility in tree placement you need. Automapping can change the tile placement dynamically in response to different arrangements, but is more complex to set up than a stamp.

Edit: If you don’t know how to set up multi-layer tile stamps: Place your tree sorted into the appropriate layers on a map, and remove any overlapping trees. Select the tree (using one of the tile selection tools) and make sure all the relevant layers are selected in the Layers panel. You should now be able to copy+paste a multi-layer stamp of your tree. To save this stamp for easy use later, open the Tile Stamps panel in View > Views and Toolbars > Tile Stamps and click the Add New Stamp button at the bottom.