Group atoms by class.
Group atoms by class.