Fix issue #294 -- Error in sortActual when data is replaced