forked from github/dataease
fix(图表): 表格表头排序字符串类型字段排序错误
This commit is contained in:
parent
103a64f600
commit
accfe34604
@ -37,12 +37,12 @@ const sortFunc = (sortParams: SortFuncParam) => {
|
||||
if (typeof aValue === 'number') {
|
||||
return aValue - bValue
|
||||
}
|
||||
return aValue < bValue ? 1 : -1
|
||||
return aValue < bValue ? -1 : 1
|
||||
}
|
||||
if (typeof aValue === 'number') {
|
||||
return bValue - aValue
|
||||
}
|
||||
return aValue > bValue ? 1 : -1
|
||||
return aValue > bValue ? -1 : 1
|
||||
})
|
||||
}
|
||||
const sort = (type?) => {
|
||||
|
Loading…
Reference in New Issue
Block a user