def sort_nodes(graph, m, desc=True):
    sorted_keys = sorted(m.iteritems(), key=lambda (k, v): (v, k), reverse=desc)
    nodes = [graph.node[k] for k, _ in sorted_keys]
    return nodes
Returns the selected language catalog as a javascript library.
dataset/ETHPy150Open croach/pydata2013/govtrack.py/sort_nodes--crossover with--dataset/ETHPy150Open django/django/django/views/i18n.py/javascript_catalog