in reply to Re^3: Sort mechanics problems with objects and potentially contradicting comparisons (would cause infinite loop)
in thread Sort mechanics problems with objects and potentially contradicting comparisons (would cause infinite loop)

It's not about efficiency. If $a and $b can't be relied on, any such use of the sort mechanism becomes definitively non-standard and the sort keyword would have to be avoided.

One world, one people

  • Comment on Re^4: Sort mechanics problems with objects and potentially contradicting comparisons (would cause infinite loop)

Replies are listed 'Best First'.
Re^5: Sort mechanics problems with objects and potentially contradicting comparisons (would cause infinite loop)
by Anonymous Monk on Jun 01, 2016 at 16:26 UTC
    They can be relied on, but they have scoping problems and can be confusing when your program spans multiple packages (see hakuex's edit).