Please disclose if any significant portion of your mod was created using AI tools by adding the 'AI Generated' category. Failing to do so may result in the mod being removed from Thunderstore.
SortHeim
One-click sorting for chests and your inventory: by name, type, weight, or rarity (biome tier). Keeps your hotbar and equipped gear in place.
| Date uploaded | 2 weeks ago |
| Version | 1.1.0 |
| Download link | Svaha-SortHeim-1.1.0.zip |
| Downloads | 51 |
| Dependency string | Svaha-SortHeim-1.1.0 |
This mod requires the following mods to function
denikson-BepInExPack_Valheim
BepInEx pack for Valheim. Preconfigured with the correct entry point for mods and preferred defaults for the community.
Preferred version: 5.4.2351README
SortHeim
One-click sorting for chests and your inventory in Valheim — by name, type, weight, or rarity.
Usage
Open your inventory or a chest. Small buttons appear beside your inventory and under the chest (hover for a tooltip). Prefer words? Set ButtonStyle to Text for buttons labelled "Sort: Name", "Sort: Type", and so on.
| Button | Sorts by |
|---|---|
| A-Z | Item name, alphabetically (in your game language) |
| Grid icon | Type: weapons, ammo, shields, armor, utility, tools, food, potions, wood, stone, ore, metal, hides, seeds, other materials, trophies, fish, misc |
| Encumbered icon | Weight, heaviest first |
| Gem icon | Rarity: biome tier, latest biome first |
Partial stacks of the same item are merged first. When sorting your inventory, your hotbar row and equipped gear never move.
How rarity works
Valheim has no rarity stat, so SortHeim ranks items by the biome they come from:
0 Meadows → 1 Black Forest → 2 Swamp → 3 Mountain → 4 Plains → 5 Mistlands → 6 Ashlands → 7 Deep North
Raw materials and trophies come from a built-in table. Anything crafted, smelted, cooked or brewed takes the highest tier among its ingredients (via its cheapest recipe), so modded items with recipes are ranked automatically. Items with no known tier go last. To fix or add one, use TierOverrides, e.g. TrophyMoose=7, MyModdedOre=5 (prefab names).
Configuration
Edit in Gale's config editor, or BepInEx/config/mbaya.SortHeim.cfg:
| Section | Key | Default | Notes |
|---|---|---|---|
| UI | ShowChestButtons / ShowInventoryButtons | true | Hide either set of buttons |
| UI | ChestButtonOffset / InventoryButtonOffset | (0, -6) / (6, 0) | Nudge the buttons if they overlap another mod's UI |
| UI | ButtonStyle | Icons | Text = labelled buttons ("Sort: Name", ...) |
| UI | ButtonWidth | 0 | 0 = automatic (compact icons, or Take All width for text) |
| Inventory | KeepHotbar | true | Never move hotbar items (slots 1-8) |
| Inventory | KeepEquipped | true | Never move equipped items |
| Sorting | MergeStacks | true | Combine partial stacks first |
| Sorting | UseStackTotals | true | Compare whole-stack weight instead of per-item |
| Sorting | NameDirection / TypeDirection / WeightDirection / RarityDirection | Asc / Asc / Desc / Desc | |
| Sorting | TierOverrides | (empty) | PrefabName=Tier pairs |
| Hotkeys | SortByName / SortByType / SortByWeight / SortByRarity | (none) | Sorts the open chest, or your inventory if none is open |
Multiplayer
Client-side only; other players don't need it. Chests are only sorted while you have them open (which makes you their owner), so it's safe on dedicated servers.
CHANGELOG
Changelog
1.1.1
- Rarity and weight sorts now group items of the same type together (food with food, wood with wood, ...) before falling back to A-Z, so materials no longer land in the middle of your food.
1.1.0
- New type sort: weapons, ammo, shields, armor, utility, tools, food, potions & meads, then materials split into wood, stone, ore, metal, hides and seeds, then other materials, trophies, fish and misc.
- New
ButtonStyleoption: set it toTextfor the classic labelled buttons ("Sort: Name", "Sort: Type", ...) instead of icons.
1.0.1
- Renamed from ChestSort to SortHeim.
- Sort your inventory too (buttons beside the inventory panel). Your hotbar row and equipped gear stay put (configurable).
- New rarity sort: orders items by biome tier, Meadows → Ashlands. Crafted, smelted, cooked and brewed items inherit the tier of their ingredients. Fix or add any item with the
TierOverridessetting. - Removed value sort (almost every item has no trader value).
- Buttons: A-Z (name), the game's Encumbered icon (weight), and a gem (rarity), with hover tooltips.
- Hotkeys now sort the open chest, or your inventory if no chest is open.
ChestSort 1.1.0
- Sort buttons became compact symbols with hover tooltips.
ChestSort 1.0.0
- Initial release: sort open chests by name, value, or weight.