/sell handall only sells in increments of 32

I’ve been noticing a lot that when I use /sell handall, instead of selling everything in my inventory that’s that item, it’ll sell most of it and leave whatever doesn’t make a stack of 32. I just did /sell handall for some cobblestone and it sold the stack, but not the 25 I had. I’ve also seen it sell 96 of a particular item and leaving a few behind in my inventory.