SERVER-10026 break planner into four pieces
SERVER-10026 move sort bounds calculation into sort stage