the new experimental release seems to fix that.
https://factorio.com/download/experimental
edit: no it does not, i am a dunce and looked at the wrong tank
as a workaround for the stable release you can set inventory filters (middle mouse button by default).
they force factorios sort_and_merge function to behave correctly.
edit2: reported this bug to the devs:
https://forums.factorio.com/128077
edit3: looks like that is not fixable. next mod version will have a blacklist or something of that sort.