code: public static ILigand[] order(ILigand[] ligands) {
          ILigand[] newLigands = new ILigand[ligands.length];
          System.arraycopy(ligands, 0, newLigands, 0, ligands.length);
  
          Arrays.sort(newLigands, cipRule);
          return newLigands;
      }
docs: Reorders the {@link ILigand} objects in the array according to the CIP rules.
  
  @param ligands Array of {@link ILigand}s to be reordered.
  @return        Reordered array of {@link ILigand}s.