On shortest paths and sorting | Synapse