required_fields = ((v.creation_counter, k) for k, v in User._fields.
    items() if v.required)
sorted_required_fields = map(itemgetter(1), sorted(required_fields, key=
    itemgetter(0)))
sorted_required_fields
Get required fields from Document in mongoengine?