sort set objects by type