[DF-3048] fix for sorting materials