fix: single sorted field, remove token

This commit is contained in:
jialin
2025-12-22 10:10:35 +08:00
parent db45c861e4
commit 45efda7f1d
10 changed files with 59 additions and 25 deletions
+11 -7
View File
@@ -15,14 +15,18 @@ type SortDirection = 'ascend' | 'descend' | null;
export const TABLE_SORT_DIRECTIONS: SortDirection[] = [
'ascend',
'descend',
null
'ascend'
];
export const tableSorter = (order: number | boolean) => {
if (typeof order === 'number') {
return {
multiple: order
};
}
return order;
return true;
// mutiple sorting can be supported in future
// if (typeof order === 'number') {
// return {
// multiple: order
// };
// }
// return order;
};