At the risk of sounding stupid; where is the sorting done?