The same sort type “WITHOUT SORTING” must be selected in all windows at the same time.
In the player’s inventory window, in the chest window, in the workbench window.