Change to order when comparing delete time with cache time