Comment by thaumasiotes
2 years ago
Preferences don't tend to work that way. You know how, if you use a sort function that accepts a user-defined comparator, the documentation will have dire warnings about making sure that the comparator gives consistent results?
The procedure you're suggesting here doesn't comply with those warnings. Sorting will not terminate, or will yield different results from attempt to attempt.
No comments yet
Contribute on Hacker News ↗