topsort (npm): Topological sort in JavaScript
Keywords: sort|algorithm