code: protected void sortPreparePriorityResources() {
          if (tc.isEntryEnabled())
              Tr.entry(tc, "sortPreparePriorityResources", _resourceObjects.toArray());
  
          Collections.sort(_resourceObjects, prepareComparator);
  
          if (tc.isEntryEnabled())
              Tr.exit(tc, "sortPreparePriorityResources", _resourceObjects.toArray());
          return;
      }
docs: Reorder resources based on commitPriority in asccending order for prepare phase.