Fix sorting by username in users list
This commit is contained in:
@@ -29,11 +29,14 @@ const usersColumns = {
|
||||
user: {
|
||||
label: t('users.users.user'),
|
||||
nowrap: true,
|
||||
sort: true,
|
||||
sort(a,b, A, B) {
|
||||
if (!A.username) return -1;
|
||||
if (!B.username) return 1;
|
||||
return A.username.localeCompare(B.username);
|
||||
},
|
||||
},
|
||||
groups: {
|
||||
label: t('users.users.groups'),
|
||||
sort: true,
|
||||
hideMobile: true,
|
||||
nowrap: true,
|
||||
width: '400px',
|
||||
|
||||
Reference in New Issue
Block a user