Fix sorting to account locate in the PlanEditor.