(sort_element, order)
return col
Used to create a column for the sort only properties to
    add the field to the list of properties and app strings but
    not persist anything to the detail data.
Used to create a column for the sort only properties to
    add the field to the list of properties and app strings but
    not persist anything to the detail data.
Used to create a column for the sort only properties to add the field to the list of properties and app strings but not persist anything to the detail data .
def create_temp_sort_column(sort_element, order):
    """
    Used to create a column for the sort only properties to
    add the field to the list of properties and app strings but
    not persist anything to the detail data.
    """
    from corehq.apps.app_manager.models import DetailColumn
    col = DetailColumn(
        model='case',
        field=sort_element.field,
        format='invisible',
        header=sort_element.display,
    )
    col._i = order
    return col
def create_temp_sort_column ( sort_element , order ) : from corehq . apps . app_manager . models import DetailColumn col = DetailColumn ( model = 'case' , field = sort_element . field , format = 'invisible' , header = sort_element . display , ) col . _i = order return col