working on the row id using $parent.$index in angularjs ng-repeats in the comparetable. There's a defect now since after a row insert the rowindexes do not get incremented