code: protected void sortTables(int[] offsets, final ByteBuffer bb) {
      Integer[] off = new Integer[offsets.length];
      for (int i = 0; i < offsets.length; i++) off[i] = offsets[i];
      java.util.Arrays.sort(off, new java.util.Comparator<Integer>() {
        public int compare(Integer o1, Integer o2) {
          return keysCompare(o1, o2, bb);
        }
      });
      for (int i = 0; i < offsets.length; i++) offsets[i] = off[i];
    }
docs: Sort tables by the key.
  
  @param offsets An 'int' indexes of the tables into the bb.
  @param bb A {@code ByteBuffer} to get the tables.