reorder unittest indices according to new sorting