A straightening formula for quantized codete11minants