What are code restrictions on turning sink tailpiece?
It's a grey area. Nothing explicitly says you can't, nor explicitly that you can. An inspector could reject it based solely on it preventing the fixture from "draining rapidly". I see your proposal as OK, it's no different than adjacent basins sharing a single trap. As long as the horizontal offset is less than 30" and there is not more than 90 deg horizontal change of direction.

Under such circumstances, no one can predict the result of an individual inspection. You can either enquire in advance, or just do it, having a more conventional plan B should there be any objection.