With iso if the objects are all the same size you can just y sort by the bottom corner. The objects could also vary by their z height and that would still work. So the idea of breaking the long objects into chunks is an idea.
To sort different sized objects you won’t be able to sort two objects based on one point on each object anymore. If it helps, try the case of just two objects, and figure out which should be in front of the other.
You can do that by comparing the iso positions of the sides of the base. Or approximating the object shapes by a line from the left and right corners and calculating which should be in front of the other. Or if you want to be super deluxe you can utilize some kind of collision detection algorithm in isometric space and using the collision normal to see which should be in front of the other.
Anyways after that you’d have a way of sorting pairs of objects. From that for each object you can make a list of other objects that they are in front of. Sorting that is called a topological sort, but basically it involves first drawing the objects that aren’t in front of anything. Then drawing the objects that are in front of only the already drawn stuff.
Unfortunately it is possible to come up with impossible to sort cases. But in general as long as the bases of the isometric objects don’t overlap you should be fine.
Here’s an older but useful link about isometric sorting.
bannalia.blogspot.com/2008/02/filmation-math.html
Just some ideas.