ENG-2549 prep: factor existing inline implementation into SubPlanAssembl...

...er.determineIndexOrdering