This mod is intended to add the main feature that is missing from vanilla Minecraft, inventory sorting.
At the moment it just adds a button that groups and spreads stacks.
If space permits to distribute over rows it will, if it permits to distribute over columns, it will choose that second. Otherwise it will just order by alphabetical order.
At the moment it will spread stacks by default over rows or columns, in the future this will be a setting.
If there are too many different item types, it will order them alphabetically.