This document discusses various methods that are used for sorting and grading food products based on their quality attributes. It describes sorting methods such as visual inspection, size sorting using screens and sieves, weight sorting using scales, color sorting using optical cameras and sensors, shape sorting using mechanical equipment, density sorting using sensors, magnetic sorting to remove metals, optical grading using cameras and algorithms, moisture sorting using meters or spectroscopy, and defect sorting manually or using automated systems with sensors and image analysis. The key methods are visual inspection, size, weight, color, shape, density, magnetic, optical, moisture, and defect sorting.