The command line sorting is black magic; it's ridiculous. Hell, just add sorting by class and main stat and I'd probably be happy tbh...
We're not going to get command line sorting or any kind of serious list sorting so this is the best we could hope for.

Agreed, though. On the market boards, I can sort by "ID, quantity, etc" including a bazillion stats there's no reason to sort by. Let's nuke that fairly useless function and add in the ability to sort our personal inventories by item level or class, not just ID or item type. Same thing with the retainer inventories. Manually sorting my closet retainer by equipable item level is a PAIN IN THE BUTT.