QuickMagic step 3: make all grids sorted (by spec/sample/site etc.)
QuickMagic step 3: fix bugs with updating locations