Used enumerate()

per @utkarshkukreti's suggestion (thanks! Good catch!)
also changed from match to a simple `let (i,&SortIndex{x,y}) = t_ind`, as it's an irrefutable pattern.
ok, that blew my mind :) Thanks!