Presently, set states fields within repeating groups are lost when a repeating group is sorted, shifted or otherwise modified after a set state input is entered.
Cognate allow users to create a list of custom set state data corresponding to a repeating group that can be sorted, modified and saved without loss of data.