HomeJavaModsSmart Inventory Sorter
Smart Inventory Sorter
ModsJava

Smart Inventory Sorter

by TOP_G2026 · on Modrinth

Which Minecraft do you have?

Every version of the game needs its own build. Pick yours, then download — the wrong build installs fine and then does nothing in the game. This mod is built for Fabric only.

⬇ Download for 26.2⬇ Download for 26.1–26.1.2⬇ Download for 1.21.9–1.21.11⬇ Download for 1.21.1–1.21.8
I don't know my version or loader
Open the Minecraft launcher and look at the profile you play on — it names both, like fabric-loader-1.21.4. The version also shows in the bottom-right corner of the game's main menu.
No loader in the profile name? Then it's plain Minecraft, and these mods won't run — you need Fabric or NeoForge installed first.
Smart Inventory Sorter — screenshot 1Smart Inventory Sorter — screenshot 2

Smart Inventory Sorter

Smart Inventory Sorter is a lightweight automatic inventory organization mod for Minecraft 1.21.x, 26.1.x, and 26.2. It sorts storage containers after players finish using them, organizes player inventories on close, consolidates partial stacks, and supports server-side only, singleplayer, and optional client controls.

Vanilla players can join a server running the mod without installing anything client-side. Install it on the client only when you want the optional sort button and keybind.

Supported Versions

Minecraft Java Status
1.21.x 21 Full support
26.1.x 25 Full support
26.2 25 Full support

Installation Modes

Mode Automatic Sorting Manual Controls Client Mod Required
Server-side only Yes /sort command No
Singleplayer Yes S button, P key, and /sort Yes
Client + server Yes S button, P key, and /sort For manual client controls only
Raw mode Yes No custom button or keybind Depends on installation mode

Server-side automatic sorting requires the mod and Fabric API on the server. A client-only installation on an unmodded multiplayer server cannot provide authoritative server auto-sorting.


Purpose & Function

The core mission of this project is to keep storage organized automatically without constant manual stack management.


Key Features

Feature Description Default
Auto-Sort on Close Sort storage after interaction ends ON
Chest Sorting Chests, double chests, and ender chests ON
Barrel Sorting Automatically organize barrels ON
Shulker Sorting Automatically organize shulker boxes ON
Other Storage Hoppers, droppers, dispensers, and compatible storage ON
Player Inventory Sorting Sort the 36-slot player inventory on close ON
Hotbar Lock Preserve all nine hotbar slots ON
Creative Tab Sorting Group items by Creative inventory category DEFAULT
Alphabetical Sorting Sort items by their displayed names AVAILABLE
Item ID Sorting Sort items by their registry identifiers AVAILABLE
Manual Sort Button Compact S button in supported container screens ON with client mod
Manual Sort Key Press P to request an immediate sort ON with client mod
Raw Mode Remove the custom button and keybind OFF

Enhance your server setup! Check out my other server-side mods over at : Fabric Server Essentials


Automatically Sorted Storage

Smart Inventory Sorter recognizes standard storage layouts and compatible storage menus, including:

For safety, specialized menus are not automatically rearranged, including:


How to Use

Automatic container sorting:

  1. Open a supported storage container.
  2. Add, remove, or rearrange items normally.
  3. Close the container.
  4. The server consolidates stacks and sorts the contents automatically.

Automatic player inventory sorting:

  1. Open your player inventory.
  2. Finish managing your items.
  3. Close the inventory.
  4. The main inventory is sorted while the locked hotbar remains unchanged.

Optional manual controls:


Command

/sort

Configuration

Configuration is stored in:

config/smart_sorter_config.json

Default configuration:

{
  "rawMode": false,
  "autoSortOnClose": true,
  "sortChests": true,
  "sortBarrels": true,
  "sortShulkers": true,
  "sortOtherContainers": true,
  "sortPlayerInventoryOnClose": true,
  "lockHotbar": true,
  "sortingMethod": "CREATIVE_TAB"
}
Setting Description
rawMode Disable the client-side S button and P keybind while keeping automatic sorting
autoSortOnClose Master switch for automatic close sorting
sortChests Automatically sort chest-style storage
sortBarrels Automatically sort barrels
sortShulkers Automatically sort shulker boxes
sortOtherContainers Sort other safe storage layouts such as hoppers, droppers, and dispensers
sortPlayerInventoryOnClose Sort the player's main inventory after it closes
lockHotbar Preserve hotbar slots during player inventory sorting
sortingMethod Select CREATIVE_TAB, ALPHABETICAL, or ID

Set raw mode for automatic sorting without custom client UI:

"rawMode": true

Restart the game or server after changing the configuration. Existing installations should verify that sortPlayerInventoryOnClose and sortOtherContainers are set to true if those options were not present in an older config.


Requirements

For server-side-only usage, install the correct Smart Inventory Sorter JAR and Fabric API on the server. Players can connect with an unmodified vanilla client.


Built for players and server owners who want organized storage without repeated inventory cleanup. Finish interacting, close the menu, and let the sorter handle the rest.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more