[DF-5161] Fixed sorting in material editor