well the title says it all. would it be possible to program that?
It would make sense to avoid module duplicates just for the sake of seeing one's module in its actual orientation.-
On a side note, I am toying with the idea of having a 1U-ish row of 'rotated-by-90-degrees' modules. To manage that in the Module Browser/Planner, a Rotate [r] command would be great. Using it twice would also solve the flip/upside down problem. But that's probably too far off of everyone else's needs.
This and other proposals for reducing duplicate modules are all for nothing unless someone goes through the database and actually deletes the existing duplicates. People will just keep creating more duplicates as long as the state of the database makes it look like that's the generally done thing.