Sorting sets