added isotope sorting