[DF-3854] Fixed materials sorting