sorting with roles