A comparison index for interval ordering