chore: set col order

This commit is contained in:
jialin
2025-12-21 21:37:05 +08:00
parent 23a761226a
commit 42f8e6a6d9
9 changed files with 52 additions and 103 deletions
+10
View File
@@ -11,8 +11,18 @@ export const GPUSTACK_API_BASE_URL = 'v2';
export const OPENAI_COMPATIBLE = 'v1';
type SortDirection = 'ascend' | 'descend' | null;
export const TABLE_SORT_DIRECTIONS: SortDirection[] = [
'ascend',
'descend',
null
];
export const tableSorter = (order: number | boolean) => {
if (typeof order === 'number') {
return {
multiple: order
};
}
return order;
};