sorter: (a, b) => a.first_name.localeCompare(b.first_name);
const columns = [{
title: 'Name',
dataIndex: 'name',
sorter: (a, b, sortOrder) => {
if (a.name != null && b.name != null) {
a.name.localeCompare(b.name);
}
if (a.name) {
return sortOrder === 'ascend' ? 1 : -1;
}
if (b.name) {
return sortOrder === 'ascend' ? -1 : 1;
}
return 0;
},
}]