Added partition and sort into the statics.