def sort_dict(unsorted_dict):
    sorted_dict = OrderedDict()
    # sort items before inserting them into a dict
    for key, value in sorted(unsorted_dict.items(), key=itemgetter(0)):
        sorted_dict[key] = value
    return sorted_dict
Use this decorator to remove trailing slashes from the request path.
dataset/ETHPy150Open opennode/nodeconductor/nodeconductor/core/utils.py/sort_dict--crossover with--dataset/ETHPy150Open RobotWebTools/rosbridge_suite/rosbridge_server/src/tornado/web.py/removeslash