Added code that tests makeGlobalStat for correct sorting of both data and cell areas.