def format_output(outputs):
    """
    The output is of the form {layer_name: blob}

    Return a list of blobs in _increasing_ id order of
    layer_name suffix, which maps onto how ConcatTable, etc return their
    outputs (in the multi output case)

    Consider that the layer name is of form <name>_<id> and sort by
    increasing <id>.
    """
    def _try_int(s):
        try:
            return int(s)
        except:
            return s

    items = sorted(
        ([_try_int(s) for s in k.split('_')], v) for k, v in outputs.items())
    return [v for (_, v) in items]