Spin Order and Phase Transitions in Chains of Polariton Condensates.