I don't know how serious you are, but yes there's a default sort accessible via your inventory, retainerr and armory chest right-click, and a custom sort with configurable conditions via the text command /isort

But the /isort is so half-assed that it doesn't have a condition for parry, nor for CP/GP.