Just use a sorted list for Entity_AI's goals - priority numbers don't seem useful and cost us in speed.