[1] It exits the pelvis through the greater sciatic foramen superior to the piriformis muscle.
[1] In normal gait, the small gluteal muscles on the stance side can stabilize the pelvis in the coronal plane.
In a positive Trendelenburg's sign the pelvis sags toward the normal unsupported side (the swing leg).
Bilateral loss of the small gluteal muscles results in a waddling gait.
[3] This article incorporates text in the public domain from page 959 of the 20th edition of Gray's Anatomy (1918)