Is my patched version that you find in the comments of the addon
https://www.esoui.com/downloads/info....html#comments
not working anymore with U40?
Edit:
Oh I see it was missing 1 line, so I've updated it to v22 and added that line:
MagicSorter v22 - Baertram fix