In a setback of sorts for chief minister Jaganmohan Reddy, the Andhra Pradesh High Court has ordered the reinstatement of N. Ramesh Kumar as State Election Commissioner, setting aside the appointment of retired Justice V Kanagaraju from Tamil Nadu by state government two months back.