topological sorted

adj.

Drunk by closing time, and arranging every person according to who must be dealt with first.

Source: Wiktionary