fixes sorting order for delta