Electro-orientation of a metal nanowire counterbalanced by thermal torques.