make sure that we always delete oldest first

Make sure that we always sort oldest version first before we start removing the oldest versions until we meet the space limit again.