queue tick handler; find next job; sort by priority and date created