I believe this is not a bug, it is likely that this is a change that comes with the Toolbar configuration, where if the bar is horizontal the items are organized like this. This used to happen before, but only in the player's inventory.NPC shops and items in storages are flipped. The way you place items in storages is also inverted (from right to left).