Switch to a checkable behavior for the library sorting menu instead of manually highlighting the menu items