for name, namedata in catdata.items():
    sorteddata[name] = [x for y, x in sorted(zip(catdata['order'], namedata))]
postsort.append((category, sorteddata))
print(postsort)
Sorting all the sub Dictionary using values of one of the sub dictionary