On algorithms for online topological ordering and sorting