sample: More robust roll_distance decision for reordering.

Add comment about an approach to decide it.