molecules have instances, not atoms
sort molecules and instances by code