(refs #334) prioritize builds submitted first, and add a unit test to