You will need to get the entire repeater and do your sorting and then loop though the rows of the repeater using the array rather than using an ACF have_rows() loops.
$repeater = get_field('js');
then loop though the array and do your sorting, when that is done loop through the array again and output what you want to output.