Hi Lisha and Jean - I think you can do this by sorting the midpoints in longitude order. I'm sure this is how I did it in the cosmobiology module. Have a look at Horoscope-Extra-Cosmobiology. See screenshot attached. Ed
Thanks Ed this has helped. It has also helped by triggering an idea of another way I could calculate which ones are separating and applying using the cosmobiology module.
Looking at the midpoints I've shared as an example:
Merc square Moon/Asc 00°01, I wasn't sure if this was applying or separating. In the cosmobiology module I can see that the Moon/Asc midpoint is 22°24 Virgo and Mercury in the chart was at 22°24 Sagittarius. So this was exact (-1" out) placing the (now separating) configuration at the top.
The Merc square Moon/Saturn midpoint underneath at 00°42. The Moon/Saturn midpoint is at 21°43 Sagittarius and Mercury at 22°24 Sagittarius which equals at 41" separating difference (-1" out again?).
And the midpoint trees also shows the same with the separating at the top (-) and applying moving down (+).