def sort_orders(output):
    """
    Takes the stdout of the default runners for the robson traversal,
    and parses it into the separate lists.
    """
    pres = []
    ins = []
    posts = []
    for line in output.split('\n'):
        if line.startswith("post:"):
            posts.append(int(line.split(':')[1]))
        elif line.startswith("pre:"):
            pres.append(int(line.split(':')[1]))
        elif line.startswith("in:"):
            ins.append(int(line.split(':')[1]))
        else:
            print("BAD INPUT IN sort_orders!!!")
            return (False, False, False)
    return (pres, ins, posts)