In my opinion any game with an inventory should have a way of sorting said inventory. That is exactly what this mod adds.
You get a button to sort manually but you can also configure any chest to sort on close or set that as the default configuration.
The sorting is done according to different algorithms based on the available space in the container and the amount of different types of items. It will initially try to fill based on the amount of rows. A double chest has 6 rows, if you have 5 different types of items and none of those exceed 9 stacks (because we have 9 columns), we will put eacht type of item in a row.
If we exceed those 6 rows, we will try to fit it in columns.
If we can't fit it into colums as well, we just put all the items ordered from left to right and top to bottom.
In any case, non-full stacks are merged with other non-full stacks of the same item type.
We also sort based on durability. The item with the least amount of damage will be first, the rest will follow in descending order.