Topological ordering of a list of randomly-numbered elements of a network | Synapse