Surgical correction of trunk balance in spinal deformities and in instability of hip joints