[DF-5230] Fixed sorting in material editor