import java.awt.*;

/*
 * This class represents a PriorityQueue that is ordered by alphabetic
 * order among the name field of a Person object.  The before method
 * is overridden so that it gives the proper ordering.
 */

class PQJob extends PriorityQueue {

  // return true iff a is before b
  public boolean before (Object a, Object b) {
    Job jA = (Job) a;
    Job jB = (Job) b;

    return (jA.name).compareTo(jB.name) < 0;
  }
}
