Import EntityMessageSorter to make it easier to share sorting mechanisms across projects that use replicant.
Import tests from planner