code: @Override
      public int compare(JTAResource o1, JTAResource o2) {
          if (tc.isEntryEnabled())
              Tr.entry(tc, "compare", new Object[] { o1, o2, this });
          int result = 0;
          int p1 = o1.getPriority();
          int p2 = o2.getPriority();
          if (p1 < p2)
              result = 1;
          else if (p1 > p2)
              result = -1;
          if (tc.isEntryEnabled())
              Tr.exit(tc, "compare", result);
          return result;
      }
docs: Comparator returning 0 should leave elements in list alone, preserving original order.