3761f2a5fb
The Extras page's Inventory section gains "Sort buttons" (sort, off) and "Sort key" (sortKey, unbound). A small button right of a chest, barrel, ender chest or shulker box title sorts the container; one right of the "Inventory" line sorts the main inventory (the hotbar stays). The key sorts the part under the cursor. inv_sort::plan merges partial stacks, then orders the stacks by creative tab order (the search tab's), then name, full stacks first, using only left PICKUP clicks with an empty hand: the game sends them as ordinary clicks, so vanilla servers accept them. A unit test replays the plans through the menu engine on 40 random chests. The Extras page binds any extra key the way it bound the zoom key (Item::key_name, Extras::set_key). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>