Simply reading the mod helps you guess its purpose; InventorySorter Mod enables you to sort your chest by middle clicking your mouse (wheel).
Also, you might utilize scrolling wheel to move 1 of item to the other inventory. InventorySorter Mod is perfect for players who are sick of hand-sorting chests, player’s inventory and hoppers.
Simple demonstration (v1.0):
Check stickied threads. This is NOT a Forge mod! You can use MultiMC or any similar launcher if you do not want to manually install the jarmod.