IDataWriter dw) throws IOException {
int pos = dw.getPosition();
List<BoundImport> bil = new ArrayList();
for (int i = 0; i < bidt.size(); i++) {
BoundImport bi = bidt.get(i);
bil.add(bi);
dw.writeDoubleWord((int) bi.getTimestamp());
dw.writeWord(bi.getOffsetToModuleName());
dw.writeWord(bi.getNumberOfModuleForwarderRefs());
}
Collections.sort(bil, new Comparator<BoundImport>() {
public int compare(BoundImport o1, BoundImport o2) {
return o1.getOffsetToModuleName() - o2.getOffsetToModuleName();