Bridgewater Associates interview question

How would you topologically sort a DAG?