sort and print object code complete