Let $f(x)$ be a ket, and $\langle f(x)|$ be the corresponding bra.
Start with
$$\frac{d}{dx} |f(x)\rangle = |f'(x)\rangle$$
Take transpose conjugate of both sides. Since derivative is anti Hermitian, we get:
$$\langle f(x)|(-\frac{d}{dx})=\langle f'(x) |$$
I don't really understand the above equation. It says that the negative of the derivative of the row vector $\langle f(x)|$ is the row vector $\langle f'(x)|$. I think that the row $\langle f'(x)|$ should simply be the derivative of the row vector $\langle f(x)|$, because its corresponding column vector $|f'(x)\rangle$ is the derivative of the column vector $|f(x)\rangle$. Why should things change when we write the vector as a row vs as a column?
I believe what's happening in terms of the delta function is that:
The derivative of a function is given by the integral:
$$f'(x)=\int _{-\infty} ^{\infty} f(x')\delta '(x-x')dx'$$
However, the notation $\langle f(x)| \frac{d}{dx}$ is not a shorthand for the above integral. Because of the new order of the matrix multiplication, this notation instead refers to the integral:
$$\int _{-\infty} ^{\infty} f(x')\delta '(x'-x)dx'$$
Now using $\delta ' (x-x')=-\delta ' (x'-x)$, we get
$$=-\int _{-\infty} ^{\infty} f(x')\delta '(x-x')dx'$$
$$=-f'(x)$$
So, in short, the notation $\langle f(x)|\frac{d}{dx}$ means the negative of the derivative of $f(x)$, because of the order of matrix multiplication.