I don't know about the mathematics of it, but there is nothing wrong with the word order of #2; it is simply that the passive voice is so hopelessly awkward here. Of course it could be re-arranged to 'The flowers were given to herself by Sandy', but that hardly sounds any better, does it?
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.