interactive sorting of rock types