3 ms·
> Is this topological sort ? No, neither what it is doing or what it ought to be doing is a topological sort. What it is actually doing seems like “return all
by dragonwriter 4y ago
> Is this topological sort ?
No, neither what it is doing or what it ought to be doing is a topological sort. What it is actually doing seems like “return all matching the stem without any sort [or sorted by ID or some other non-relevant value].”
The various things the user suggest are all sorts by fairly simple functions, not the kind of dependency ordering at issue with a topological sort. Choosing the best one to use as a default might be hard, but they aren’t the kind of complex things you can’t implement as a simple order-by once you are set up for it.