class SimpleAtomCanonicalizer {

    public Collection<IAtom> canonicalizeAtoms(IAtomContainer container) {

        List<IAtom> canonicalizedVertexList = new ArrayList<IAtom>();
        for (IAtom atom : container.atoms()) {
            canonicalizedVertexList.add(atom);
        }
        Collections.sort(canonicalizedVertexList, new SimpleAtomComparator());
        return canonicalizedVertexList;
    }

}