ValheimChestSort

v1.0.0·Updated 2026-09-11

One-click organization of boxes: A new "Organize" button is added to the interface (on the left side of the item stacking button) to merge scattered stacks and rearrange them by category/name. Adds a Sort button to the container UI next to Stack All.

About this mod Machine translation

ValheimChestSort

Add a "one-click organization" to the box: open any container (box, cart, etc.) and click the "Organize" button to the left of the "Item Stacking" button in the container interface.

(or press the shortcut key R), the items in the box will be immediately merged into scattered stacks and rearranged by category/name, with the spaces removed, to make everything neat.

Only rearrange the items already in the box without moving, discarding, or changing the properties or quantity of any items (conservation of total number).

Function

  • Interface button: Automatically add an "Organize" button to the left of the original "Item Stacking" button on the container interface (made by cloning the original button,

Appearance/fonts/transition animations are consistent with the game). The Chinese interface displays "Sort", and other languages ​​display "Sort", which can also be customized in the configuration.

  • Shortcut key: Press R after opening a container (configurable), has the same function as the button.
  • Merged stacks: Scattered stacks of the same item will be automatically replenished (for example, 3 50/50 charcoal can be combined into 1 50 + 1 100).

Only items with the same "name + quality + world level + variant + custom data" will be merged.

  • Sort by category: The default order is Materials → Consumables → Ammunition → Weapons → Shields → Armor → Tools/Miscellaneous, similar categories are then sorted by name,

Quality is arranged from high to low.

  • Remove spaces: After sorting, the items will be arranged compactly row by row starting from the upper left corner, and there will be no gaps.
  • Valid for boxes, carts, and other containers that use game Container components.
  • When closed / not clicked, it is completely the original behavior and does not affect any original operations.

operate

| Key/Button | Function |

| --- | --- |

| "Organize" button | In the container interface, to the left of the original "Item Stacking" button, click to organize the current box |

| R | Organize currently opened boxes (default shortcut key, can be modified in configuration) |

Usage: Go to the box and press E to open → click the "Organize" button (or press R) → the box will be sorted automatically → press Esc to close.

If you are dragging something in your hand when sorting, you will be prompted to put it down first to avoid misoperation.

Install

Method 1: r2modman Mod Manager (recommended)

  • Already on the shelves: Search for ValheimChestSort in the mod manager and install it (the BepInEx dependency will be automatically brought in).
  • Local package import: Download SuperVikingDepartment-ValheimChestSort-1.0.0.zip under dist/ of this warehouse, in r2modman

Settings → Import local mod (or Install from file) select the zip.

Method 2: Manual installation (start the game directly)

  • First install BepInExPack for Valheim (denikson-BepInExPack_Valheim).
  • Place ValheimChestSort.dll into BepInEx/plugins/ in the game root directory.
  • Start the game.

Note: When starting the game with r2modman, the profile directory takes effect, not the BepInEx in the game installation root directory.

Configuration

BepInEx/config/SuperVikingDepartment.ValheimChestSort.cfg is generated after first startup:

| Configuration items | Default value | Description |

| --- | --- | --- |

| SortKey | R | Sort shortcut keys. Fill in the KeyCode name (R, T, B, LeftAlt, Mouse3, etc.). |

| SortMode | Category | Category = Category first, then name; Name = Sort directly by name. |

| MergeStacks | true | Whether to merge scattered stacks. |

| AddButton | true | Whether to add an "Organize" button to the left of the "Item Stacking" button on the box interface. |

| ButtonLabel | (empty) | The text on the "Organize" button. Leave blank = Automatic: "Sort" for Chinese interface, "Sort" for other languages. |

| DebugLogging | false | Output the detailed log for troubleshooting. |

You need to restart the game after making changes.

Will it affect achievements?

Won't. …

Install & use Install: BepInEx plugin

  1. The archive from playbuff is the mod itself — usually a BepInEx plugin (a .dll or a plugin folder once unzipped).
  2. Recommended: use a community mod manager (such as r2modman) — pick this game, import the mod, and the manager sets up BepInEx and its dependencies for you.
  3. Manual route: install the BepInEx loader in the game folder, then drop the unzipped .dll or plugin folder into BepInEx/plugins/.
  4. Launch the game — the BepInEx console logs every plugin it loads; seeing this mod in the log means it is installed.

Mods with listed dependencies need those installed too, or they will not load. Options are usually changed in-game or in the plugin's config file. In multiplayer, the host and every client need the same mods installed.

Dependencies

Install these first, or the mod will not work:

denikson-BepInExPack_Valheim

File & checksum

Filename
ValheimChestSort-1.0.0.zip
File size
21.2 KiB