If you have an incomplete stack in the first slot of a container, and use the sort function, it will use an entire stack to fill the missing resource.
https://imgur.com/a/n11FyL8 Here it happens multiple time on an auto-refinery.
https://imgur.com/a/Raui5cP Here is me doing it manually in a container not connected to anything.
Lost 25k LGF to this bug, so, either disable sorting, or fix it as fast as possible.
Server: Survival