def reorder_events(new_events):
    """
    Place marginalize events at end of events
    """
    new_events_reordered = []
    for event in new_events:
        if event[0] != 'marginalize':
            new_events_reordered.append(event)
    for event in new_events:
        if event[0] == 'marginalize':
            new_events_reordered.append(event)
    return new_events_reordered