Fixed sorting of doseArray for single-frame dose data