Out of 3 stash sorters I found, this is the only one that actually works.
It is too hard for me to improve this source code. But it works, so I closed my eyes tight and done some hacks.
Changes:
-sorts gems (r-g-b, support r-g-b)
-positions mouse absolutely within poe window (moving mouse during action still bad, but it won't screw everything up)
-better name matching (now it will not place Bone Offering near rings because it's offeRING), case insensitive too
I'm using it so maybe you'll find it useful too.
Download AHK script
PS: Thanks for releasing the sources, kokosoida!