small adjustment about the category sorting fix