class Rufus::Scheduler::JobArray

def each(now, &block)

def each(now, &block)
  to_a.sort_by do |job|
    job.next_time || (now + 1)
  end.each do |job|
    nt = job.next_time
    break if ( ! nt) || (nt > now)
    block.call(job)
  end
end