Classification of poorly-sorted sedimentary rocks