Broken sorting.
Open the inventory.
There is a selection of sorting types in the upper left window.
Cancel any sorting, i.e. choose “No sorting”.
If you have opened a chest, then your character and the chest or workbench must have the same sorting type. And this type should be “Without sorting” - at the same time.