Topological order and thermal equilibrium in polariton condensates