Check out Inventory > Inventory Settings, there are separate settings for item, weapon and armor being stacked or split in the inventory. E.g. the Add Item Type setting set to Auto Stack should stack all equal items.
However, keep in mind that an item of the same kind isn't always equal, e.g. when using item variables with random values (or changed values), they're different items. Or equipment with random status bonuses :)