Here's the lowdown on the new sort order:
- Default ordering is by type, subtype, material level and name, except for a couple exceptions noted below. Type and subtype are listed in the item description tooltip, like "weapon/mace" or "armor/light".
- The sort order for types is as follows: potion, scroll (covering runes and infusions), jewelry, weapon, ammo, armor, gem, alchemist-gem, lite, lore, misc, money, tool, orb, chest, charm, totem, mount, and the rest alphabetically by type name. [This is where the default ordering falls down; it only covers a few types, and lumps the rest together unsorted by type.]
- Subtype is sorted alphabetically by subtype name. One exception: within the weapon type, bows and slings sort after other weapons.
- We make an exception for gems and alchemist gems, which are sorted by tier before subtype (since for gems, subtype is just color).
[edit 2013-11-13 12:23am: Technical info:]
Code: Select all
Superload:
mod.class.Player:
showInven() [overloaded, to replace the sort method]