@BetterRed - I had similar issues when trying to use the Calibre sort option in Action Chains. Sometimes it would randomly fail due to the menu being re-built.
Depending on your usecase, if you use Action Chains you may want to try with
multisort custom module. This can be added to the Favourites menu without the invalidation issue.
Note that the columns are selected in advance.