Revert "transaction: keep last dep and remove dup matches while sorting deps."
Revert "transaction: keep last dep and remove dup matches while sorting deps."

This reverts commit b764f8e19a108c2d86b0d283cab25508d9dcbd53.

datenwolf/xbps,ebfe/xbps,datenwolf/xbps,stpx/xbps,stpx/xbps,ebfe/xbps,stpx/xbps,datenwolf/xbps,ebfe/xbps