Client Sort
Modby NotRyken
Versatile and easy inventory sorting.
Type
Mod
CurseForge Downloads
11,069,387
CurseForge ID
1049891
Modrinth Downloads
3,840,645
Modrinth ID
K0AkAin6
Last Updated
Jun 12, 2026
Description
Sort
- Press the
button, or hover over the inventory with
your mouse and press the keybind (default: middle mouse button).
- When activated, items are sorted by their position in the creative inventory search tab.
Alternative sort orders can be used by holding down a modifier key while sorting.
- `Shift` - descending order of quantity.
- `Control` - alphabetical order.
- `Alt` - ascending order of item ID.
Fill Stacks
- Press the
button, or hover over
the inventory that you want to move items out of and press the keybind (default: unbound).
- When activated, partial stacks in the other inventory are topped-up using items in the origin
inventory.
- This button is disabled on the player inventory by default, but can be enabled via the editor (see
below).
Restock
- Press the
button, or
hover over the inventory that you want to move items out of and press the keybind (default:
unbound).
- When activated, the other inventory is restocked using items in the origin inventory. No new item
types are added to the other inventory.
Transfer
- Press the
button, or hover over the
inventory that you want to move items out of and press the keybind (default: unbound).
- When activated, as many items as possible are moved from the origin inventory to the other
inventory.
Other Options
- Slot ignoring:
- Exclude slots from being processed by operations.
- Configurable via the editor screen.
- Auto operations:
- Automatically perform an operation (e.g. sorting) when opening an inventory.
- Configurable via the editor screen.
- Scoping:
- Include or exclude the hotbar and extra slots from being processed with the inventory.
- Configurable via mod config, `General` tab.
- Sorting overrides:
- Always sort specific items to the start or end.
- Configurable via mod config, `Sorting` tab.
- Matching overrides:
- Ignore NBT data (e.g. enchantments) when comparing items in sort or restock operations.
- Configurable via mod config, `Matching` tab.
- Interaction sounds:
- Play a sound when clicking in client-side operations.
- Configurable via mod config, `Sounds` tab.
Editor Screen
- The editor can be opened in two ways:
- If a trigger button is visible, right-click on it.
- Otherwise, bind the `Open Editor` keybind (unbound by default) and press it while viewing an
inventory.
- When you've opened the editor, hover over `Instructions` for more information.
- Note: fill and transfer buttons are only shown if set to show on *both* the player inventory and
the container, so you can easily hide them everywhere by hiding them on just the player inventory.
Client-Side Policies
- ClientSort uses a policy system to determine when to allow operations, when to show the trigger
buttons, and when to ignore slots. The policy can be configured either via the editor screen or via
the `Policies` tab of the mod options.
- Read the in-game instructions for more information on editing policies.
Server-Side Policies
- If installed on a dedicated server, ClientSort can use policies to automatically disable
server-accelerated operations when it detects an incorrect state (such as item duplication).
- The policy list is stored in the `clientsort-server.json` config file, which can be manually
edited and reloaded using the `/clientsort reload` command.
Serverside policies are *not* synced to clients, so if a client attempts to perform a
server-accelerated operation that the server does not allow, a warning message will be shown to the
client. The player can then opt to add a client-side policy to disable the operation entirely,
disable server acceleration, or enable automatically falling back to client operations.
Serverside Config File
```json5
{
"options": {
// Whether validation and automatic blacklisting should be enabled when the mod is used on a
// dedicated server.
"validationActiveServer": false,
// Whether inventories should be blacklisted when the wrong type of item is found in a slot.
"validateItemType": true,
// Whether inventories should be blacklisted when the wrong number of items is found in a slot.
"validateStackSize": true,
// The minimum difference between expected and actual which should be considered invalid.
"validateStackSizeThreshold": 32,
// Whether to always log a message when the result is not exactly as expected (even if
// validation is disabled, the difference is less than the threshold, etc.)
"alwaysLogUnexpectedResults": true,
// The list of policies for different inventory and container types.
"classPolicies": {
// An example entry.
"com.simibubi.create.content.equipment.toolbox.ToolboxMenu": {
"className": "com.simibubi.create.content.equipment.toolbox.ToolboxMenu",
"sortEnabled": false,
"stackFillEnabled": true,
"transferEnabled": true,
// Updated automatically when an inventory is blacklisted.
"lastAutoEditTime": "2025-09-20T14:58:41.1620876+08:00",
"lastAutoEditReason": "Sort operation failed at slot mapping 12->5: Expected '2 minecraft:spruce_slab' in destination after set, got '0 minecraft:air'!"
}
}
}
}
```
### Installation
#### Client Required, Server Optional
- As the name suggests, ClientSort is fully functional when it is only installed on the client.
However, if it is also installed on a server, connected clients with the mod will be able to use
server-accelerated (near-instant) operations instead of the normal rate-limited operations.
#### Dependencies
- Fabric: [Fabric API](https://modrinth.com/project/P7dR8mSH),
[ModMenu](https://modrinth.com/project/mOgUt4GM),
[Cloth Config API](https://modrinth.com/project/9s6osm5g)
- Neo/Forge: [Cloth Config API](https://modrinth.com/project/9s6osm5g)
### Credits
ClientSort uses code from the following mods, in both modified and unmodified form, in accordance
with their respective licenses.
- [Mouse Wheelie](https://github.com/Siphalor/mouse-wheelie)
by [Siphalor](https://github.com/Siphalor) ([Apache-2.0](https://github.com/Siphalor/mouse-wheelie/blob/1.20.2/LICENSE)
license)
- Item comparison
- Client and server-side sorting
- Client-side interaction manager
- [Inventory Management](https://github.com/Roundaround/mc-fabric-inventory-management) by
[Roundaround](https://github.com/Roundaround) ([MIT](https://github.com/Roundaround/mc-fabric-inventory-management/blob/1.21/LICENSE)
license)
- Inventory trigger buttons
- Button generation
- Button position editor
### Related Mods
- [Mouse Tweaks](https://modrinth.com/project/aC3cM3Vq) - item scrolling, mouse dragging.
- [More Mouse Tweaks](https://modrinth.com/project/S8drsznD) - single-click crafting and trading,
quick-move and quick-drop.
- [Tweakeroo](https://modrinth.com/project/t5wuYk45) - hand restock, auto tool-switch, tool break
prevention and more.
### Contact
[](https://discord.terminalmc.dev)
[](https://github.com/TerminalMC/ClientSort/issues)
[](https://github.com/TerminalMC/ClientSort/blob/HEAD/LICENSE.txt)
Compatibility
Mod Loaders
Fabric
Forge
Neoforge
Quilt
Game Versions
1.20
1.20.1
1.20.4
1.20.6
1.21
1.21.1
1.21.2
1.21.3
1.21.4
1.21.5
+10 more
Screenshots
Similar Mods
Refined Storage
An elegant solution to your hoarding problem.
Mod
148,611,746
CoroUtil
Library Mod for Weather/Tropicraft/ZombieAwareness/etc
Mod
147,125,501
Connectivity
Fix Login timeouts, Packet sizes errors, Payloads errors, ghostblocks and more.
Mod
145,380,282
Building Gadgets
A collection of Gadgets to make building large structures a little bit easier!
Mod
145,374,842
Industrial Foregoing
A collection of machines to make your minecraft builds easier to automate
Mod
145,321,132
AmbientSounds 6
#listentonature
Mod
143,797,100
Included in Modpacks
Semi Realistic Space Exploration Modpack
Lumen Packs
SimplyVanilla
TKS SMP
Engineer's Journey
Better MC [FORGE] - BMC4
nClient
Helix Modpack
Community Create VII
Storm Chasers Saga 2
Qearioz's Optimized PvP & SMP
Refined Vanilla
Vanilla Horizons
Fidelity
Yet Another Vanilla But Better (YAVBB)
Age of Scales & Bones
RainbowMon 2
Goodfellaz Vanilla+
Eshkere-modpack
NZSMP
Ex.Beta RDX
Official Dynastie Community Modpack
Cobblemon Adventures
OpTimatic LITE
The Stuff of Legend
MC Finals
Smooth Journey (Lite Version)
Smooth Journey
Affogato
Goodfellaz Server Module
LokelPack
Java & Stuff
Barely Modded
Sosaland
命运齿轮FOM【Fate's Machinery】
Balanced Origins
Valkaw Client
Assembly Assembled
Assembly Assembled | Server
Knabbiiicraft 7
Client Optimized
KrackherSMP Vanilla
ForgeSMP
Lunaria the Creater
T.MOD
zOptimized
Magic of Create
Aetheris QoL
Bambam Modpack
Vanilla Reworked
medieval smp S4
RE:mix
ZuiderSchemer Pack
MustChill
Client+
FPS Basepack
VanillaEnhancedCraft
Create: Just Extended
Vanilla Enhanced
Vanilla Expansion Overhaul | veo
Fast & Fine
HCT - Hexandcube's Client Tweaks
Friendly Adventures
Vanilla Reinvented
Stardivers
Luminto Modpack
Slimes SMP Forever World
[PRH] Project Rabbit Hutch
Proximity Optimized Vanilla
Turkuć SMP: PENTIMENTO
Felpscraft
Mediumcore Enhanced+
Wayward
Sanctuary Aeronautics
Create: The Age of the Sky
BTE HKMU
Legacies
云游轻量生存整合包【YunGames Lite Survival Optimization】
KRILLKRAFT
AgalarMC Vanilla
PebbleTown
ATMIL - All The Mods I Love
JustImproved
Vanilla Reloaded