sorting with ingredients