toposort basic sorting (without handling errs) (api version 5)