'Reorder the traces in a graph.
The order of the traces determines the order of the legend entries
and the layering of the objects drawn in the graph, i.e. the first
trace is drawn first and the second trace is drawn on top of the
first trace.
Args:
current_indices (list[int]): The index of the traces to reorder.
new_indices (list[int], optional): The index of the traces
specified by `current_indices` after ordering.
If None, then move the traces to the end.
Examples:
Example 1 - Move the first trace to the second to last
position, the second trace to the last position
graph.move_traces([0, 1])
Example 2 - Move the first trace to the second position,
the second trace to the first position.
graph.move_traces([0], [1])'

def reorder_traces(self, current_indices, new_indices=None):

    message = {'task': 'moveTraces', 'currentIndices': current_indices, 'graphId': self._graphId}
    if (new_indices is not None):
        message['newIndices'] = new_indices
    self._handle_outgoing_message(message)
