promotional bannermobile promotional banner

Sort OG

Press R or click a button to sort any chest or your inventory: stacks merge and items line up. Client side, works on any server.
item image
item image
item image

Description

Sort OG

Forge • NeoForge • Fabric • Quilt | 1.12.2 → 26.3

Press R and your chest is sorted. Sort OG merges partial stacks and lines everything up, in any chest, barrel, shulker box or your own inventory. It only needs to be on your side: it sorts with the same clicks you would make, so it works on any server, even a plain vanilla one, without asking anyone to install anything.

A messy chest sorted with one click, then the inventory

One click on the chest's button, one on the inventory's (or press R).

What it does

Features

  • ⌨️ One key: press R (change it in Controls) and the section under your mouse is sorted: the chest, or your inventory. With the mouse elsewhere, the chest goes first.
  • 🖱️ Or one click: a small button sits above each section's slots, and middle click sorts too (in survival and adventure: in creative it still copies items, as usual).
  • 📦 Stacks merge: three half stacks of iron become one full stack and a bit, leaving free slots.
  • 🔤 Three ways to sort: by category (gear, food, blocks, then the rest), by name (A to Z) or by amount (what you have most of first). Shift + R, or shift-click on a button, changes the mode, and it's remembered.
  • 🎒 Your hotbar stays put: sorting your inventory only moves the rows above the hotbar, and armor and the off-hand are never touched. Turn on sortHotbar if you want it sorted too.
  • 🧰 Works where it should: chests, double chests, barrels, ender chests, shulker boxes, hoppers, dispensers, minecart chests and modded chests with ordinary slots. On furnaces, crafting tables, anvils and other machines their slots are left alone, and the key sorts your inventory instead.
  • 🔒 Safe: nothing happens with an item on your cursor, while you type in a text box (an R in an anvil's name field is just an R), or in the creative inventory. Damaged tools and renamed or enchanted items stay separate.
  • 🌍 Client side: install it, join any server. It's harmless on a server too, so it's fine in a modpack that runs on both sides.

Configuration

The key is in Options > Controls > Key Binds, under Sort OG. Everything else is in config/sortog.properties (created on the first start, with a comment on each line):

Setting Default What it does
mode category How items are ordered: category, name or amount
sortHotbar false Also sort the hotbar when sorting your inventory
middleClick true Middle click sorts too (survival and adventure)
showButtons true Show the small sort buttons on inventory screens

Compatibility

Loader Minecraft versions
NeoForge 1.20.4, 1.20.6, 1.21.1, 1.21.3, 1.21.4, 1.21.5, 1.21.8, 1.21.10, 1.21.11, 26.1.2, 26.2, 26.3
Forge 1.12.2, 1.16.5, 1.17.1, 1.18.2, 1.19.2, 1.19.3, 1.19.4, 1.20.1, 1.20.2, 1.20.4, 1.20.6, 1.21.1, 1.21.3, 1.21.4, 1.21.5, 1.21.8, 1.21.10, 1.21.11, 26.1.2, 26.2, 26.3
Fabric / Quilt 1.16.5, 1.17.1, 1.18.2, 1.19.2, 1.19.3, 1.19.4, 1.20.1, 1.20.2, 1.20.4, 1.20.6, 1.21.1, 1.21.3, 1.21.4, 1.21.5, 1.21.8, 1.21.10, 1.21.11, 26.1.2, 26.2, 26.3 (needs Fabric API)
  • Nothing to install on the server: every sort is a series of ordinary inventory clicks. If a server's rules forbid inventory sorting mods, those rules still apply to you, so check before you use it there.
  • No new items or blocks, so you can add it to or remove it from an existing world at any time.
  • Works with Sodium, Iris and shader packs (the screenshots below use Complementary Reimagined).
  • Every version is tested in-game before release (real chests, full double chests, every mode, the key, the buttons, middle click, an item on the cursor, text boxes, machines and the creative inventory), with the result checked on the server, and boots on a dedicated server.
  • MIT License: use it in any modpack.

Gallery

A messy double chest, one press of R later

Double chest before and after

Your inventory is sorted too, and the hotbar stays as you set it

Inventory before and after

Stacks merge, leaving free slots

Chest before and after

A storage room that stays tidy

Storage room

A small button above each section

Sort button

Sorted by amount: what you have most of comes first

Sorted by amount

More screenshots in the Gallery tab.


💬 Found a bug or have an idea? Leave a comment. Feedback is always welcome!

⭐ If Sort OG tidied up your base, a follow helps a lot!

Sort OG Team

profile avatar
  • 2
    Followers
  • 8
    Projects
  • 4.8K
    Downloads

Mod developer

More from Miami_modsView all

  • Trash & Crates OG project image

    Trash & Crates OG

    Crates with more room than a chest that keep their contents when broken, and a trash can that destroys your junk.

    • 174
    • November 3, 2026
  • Hammers OG project image

    Hammers OG

    Hammers and excavators from stone to netherite that mine a 3x3 square on the face you hit. Sneak to mine one block.

    • 187
    • November 3, 2026
  • Magnet OG project image

    Magnet OG

    A craftable magnet: right-click to switch it on and nearby items and experience fly to you. Leaves hoppers and thrown items alone.

    • 367
    • November 1, 2026
  • Timber OG project image

    Timber OG

    Cut one log and the whole tree falls; mine one ore and the whole vein follows. Drops land in one pile, builds stay safe, tools never break.

    • 516
    • October 30, 2026
  • Trash & Crates OG project image

    Trash & Crates OG

    Crates with more room than a chest that keep their contents when broken, and a trash can that destroys your junk.

    • 174
    • November 3, 2026
  • Hammers OG project image

    Hammers OG

    Hammers and excavators from stone to netherite that mine a 3x3 square on the face you hit. Sneak to mine one block.

    • 187
    • November 3, 2026
  • Magnet OG project image

    Magnet OG

    A craftable magnet: right-click to switch it on and nearby items and experience fly to you. Leaves hoppers and thrown items alone.

    • 367
    • November 1, 2026
  • Timber OG project image

    Timber OG

    Cut one log and the whole tree falls; mine one ore and the whole vein follows. Drops land in one pile, builds stay safe, tools never break.

    • 516
    • October 30, 2026