Keep order of categories from merged files