Sorting and regulation compliance