lots of debugging. it now sorts by run.