rename 'sgp.iter' when used as an integer for indexing to avoid confusion with sgp.iter lists elsewhere
make sure tmp.lookup is ordered correctly.  Was re-ordering a grade progression (6, EOCT, 8) to (EOCT, 6, 8)