|
@@ -192,15 +192,15 @@ const Client = props => {
|
|
|
title: '电话',
|
|
title: '电话',
|
|
|
dataIndex: 'phone',
|
|
dataIndex: 'phone',
|
|
|
key: 'phone',
|
|
key: 'phone',
|
|
|
- width: 65
|
|
|
|
|
- // sorter: (a, b) => a.phone.localeCompare(b.phone)
|
|
|
|
|
|
|
+ width: 65,
|
|
|
|
|
+ sorter: (a, b) => a.phone - b.phone
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
title: '手机',
|
|
title: '手机',
|
|
|
dataIndex: 'telephone',
|
|
dataIndex: 'telephone',
|
|
|
key: 'telephone',
|
|
key: 'telephone',
|
|
|
width: 75,
|
|
width: 75,
|
|
|
- sorter: (a, b) => a.telephone.localeCompare(b.telephone),
|
|
|
|
|
|
|
+ sorter: (a, b) => a.telephone - b.telephone,
|
|
|
search: false
|
|
search: false
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
@@ -208,7 +208,7 @@ const Client = props => {
|
|
|
dataIndex: 'qq',
|
|
dataIndex: 'qq',
|
|
|
key: 'qq',
|
|
key: 'qq',
|
|
|
width: 75,
|
|
width: 75,
|
|
|
- sorter: (a, b) => a.qq.localeCompare(b.qq),
|
|
|
|
|
|
|
+ sorter: (a, b) => a.qq - b.qq,
|
|
|
search: false
|
|
search: false
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
@@ -216,7 +216,7 @@ const Client = props => {
|
|
|
dataIndex: 'email',
|
|
dataIndex: 'email',
|
|
|
key: 'email',
|
|
key: 'email',
|
|
|
width: 75,
|
|
width: 75,
|
|
|
- sorter: (a, b) => a.email.localeCompare(b.email),
|
|
|
|
|
|
|
+ sorter: (a, b) => a.email - b.email,
|
|
|
search: false
|
|
search: false
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
@@ -321,7 +321,7 @@ const Client = props => {
|
|
|
key: 'address',
|
|
key: 'address',
|
|
|
ellipsis: true,
|
|
ellipsis: true,
|
|
|
width: 150,
|
|
width: 150,
|
|
|
- sorter: (a, b) => a.address.localeCompare(b.address),
|
|
|
|
|
|
|
+ sorter: (a, b) => a.address - b.address,
|
|
|
search: false
|
|
search: false
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|