How is running order chosen?

Does someone choose it? What made them put Montenegro on 2nd spot?