The inventory filter is not simply reapplied if you click an already highlighted filter.
Let's say you already used a filter by type, then you add a few items. You cannot just reclick on "type", you have to select another filter and then reselect "type" to get it sorted.