Full documentation for the tentative ordering algorithm.