Adding function to shift ordering of segments in block