GreedyEngineTest - sort by priority