'Return a predictable, OrderedDict version of self.'

def get_ordered(self, **kwargs):

    keys = sorted(self.keys(), key=graph_objs_tools.sort_keys)
    ordered = OrderedDict()
    for key in keys:
        if isinstance(self[key], PlotlyBase):
            ordered[key] = self[key].get_ordered()
        else:
            ordered[key] = self[key]
    return ordered
