in reply to Sort mechanics problems with objects and potentially contradicting comparisons (would cause infinite loop)

For part 2, it sounds like you're trying to do some kind of topological sort, but I'm not sure of the details.
  • Comment on Re: Sort mechanics problems with objects and potentially contradicting comparisons (would cause infinite loop)

Replies are listed 'Best First'.
Re^2: Sort mechanics problems with objects and potentially contradicting comparisons (would cause infinite loop)
by Anonymous Monk on Jun 01, 2016 at 15:58 UTC
    There are several modules available, but I haven't tried them. It may actually be easier to roll your own than to figure out how the modules work. topological sort
      I am beginning to agree with you on that. Although I need both a sorted list of groups and a hash for looking up what is in which group to do the homegrown thing, it is not so big a stretch to go from the orcish manoeuvre to a group sort on the same basis that handles the topological versus circular dependency scenario safely.

      One world, one people