sorting=True vs sort_action & sort_mode

It appears that sorting is not recognized when I am using Pycharm, but works perfectly in Spyder. The converse is true when trying to use sort_action & sort mode in Spyder. It works fine in Pycharm but does not work in Spyder. What is going on?