Topologically sort tasks dependency list produced by donot-parser