category sort updated to work with retired products