I've been waiting for this cheat too. As a result, I made it myself.
Field 00000028 is items count.
00000028 = 40
00000031 = 49
00000063 = 99
etc
I prefer use max 49 since in this case the items stacks will collapse during sorting. I mean if you have more then 1 stack of some item, after sort...