sorting oujt structure