make sure result of subtract is sorted