def sort_by_date_key(data_item):
    """ A sort key to for the created field of a data item. The sort by uuid makes it determinate. """
    return data_item.title + str(data_item.uuid) if data_item.is_live else str(), data_item.date_for_sorting, str(data_item.uuid)
def sort_by_date_key ( data_item ) : return data_item . title + str ( data_item . uuid ) if data_item . is_live else str ( ) , data_item . date_for_sorting , str ( data_item . uuid )
A sort key to for the created field of a data item. The sort by uuid makes it determinate.