(overly) Detailed analysis and steps to reproduce:
- Ensure that you have 5 iron plates and 0 iron sticks in your inventory/hotbar/cursor.
- Click the iron stick recipe.
- 1 iron plate will be consumed, triggering an inventory sort.
- 2 iron sticks will be produced and placed in your main inventory, not triggering an inventory sort; the sticks will remain at the end of your inventory.
- Pick up 1 iron stick by right-clicking the stack of 2 iron sticks.
- An inventory sort will be triggered, moving the other stick to the correct slot.
- Drop the stick you picked up on the ground (or into a chest, or anything that prevents it from interfering with the next step).
- Click the iron axe recipe.
- 1 iron stick and 4 iron plates will be consumed.
- 2 iron sticks will be produced, resulting in a total of 3 iron sticks in the system.
- The third iron stick will be placed into your inventory, once again not triggering an inventory sort; the stick will again remain at the end of your inventory.
- 1 iron axe will be produced and placed into your toolbar, triggering an inventory sort; the excess stick will now be moved into the correct slot.
[/ocd]