Sorting your inventory

The order your inventory is sorted in, the three layouts, and sorting on pickup.

A messy inventory sorted with one click

Press R with your inventory or a chest open, or click the Sort button under your inventory. Only the main inventory is sorted. Your hotbar, armor and offhand are left alone.

The order #

  1. Weapons, tools and armor: swords, axes, bows and shields, then pickaxes, shovels and hoes, then armor.
  2. Food.
  3. Blocks, grouped by material: all your oak together, all your stone together.
  4. Everything else.

The order is the same every time, so after a while you know where to look.

Items that stay in their slot #

To keep an item in the same slot through every sort, like a favourite slot, Alt+Shift+Click it in your inventory. It goes on the blacklist, and the rest of your inventory is sorted around it. Alt+Shift+Click it again to let it be sorted. See The blacklist.

The keep list (Alt+Click) does not do this: it only decides what Quick Stack and Quick Empty leave with you, and a sort moves kept items like anything else.

On a server, items that open a screen when clicked, such as a plugin's backpack, or that cannot be moved, stay in their slot too. See Items that stay put.

Three layouts #

ClickLayout
ClickCompact: everything in order, no gaps.
Shift+ClickColumns: each kind of thing gets its own column.
Ctrl+ClickRows: each kind of thing gets its own row.
Alt+ClickCompact, the same as a plain click.

Shulker boxes #

A shulker box is sorted by what is in it. A box of redstone ends up next to your redstone, a box of cobblestone next to your cobblestone.

Shulker boxes with their contents on the lid, sorted next to matching items

Sorting on its own #

With Auto-sort inventory on pickup on, your inventory is sorted again shortly after you pick something up, in the layout you used last. It only starts after you have sorted by hand once. It is off by default.

Auto-sort inventory on pickup default Off
Sort again after every pickup.
Merge partial stacks default On
Combine partial stacks of the same item before sorting, so only one partial stack is left.
Item blacklist
Opens the blacklist: the items Sorted never moves. See The blacklist.
Re-sort inventory after moving items default On
Sort your inventory again after Pull All, Quick Empty or Quick Fill. Off keeps your own layout: incoming items only top up your stacks and fill empty slots.

Something missing or wrong on this page? Say so on Discord.