code: def _field_sort_name(cls, name):
          if isinstance(cls.__dict__[name], DateItemField):
              name = re.sub('year',  'date0', name)
              name = re.sub('month', 'date1', name)
              name = re.sub('day',   'date2', name)
          return name