If sorting by multiple columns, you need to use an array:
table1.setSort([{columnId: 'role',direction:'asc'},{columnId:'createdAt', direction:'asc'}])
If sorting by multiple columns, you need to use an array:
table1.setSort([{columnId: 'role',direction:'asc'},{columnId:'createdAt', direction:'asc'}])