in reply to Re: Merge lists of ordered strings into canonical ordering
in thread Merge lists of ordered strings into canonical ordering

Topological sort is basically it, but with the catch that sometimes the user contradicts themself.
  • Comment on Re^2: Merge lists of ordered strings into canonical ordering