diff --git a/packages/core/client/src/block-provider/TableBlockProvider.tsx b/packages/core/client/src/block-provider/TableBlockProvider.tsx index b6829500c..1442d0261 100644 --- a/packages/core/client/src/block-provider/TableBlockProvider.tsx +++ b/packages/core/client/src/block-provider/TableBlockProvider.tsx @@ -145,8 +145,7 @@ export const useTableBlockProps = () => { ? sorter.order === `ascend` ? [sorter.field] : [`-${sorter.field}`] - : globalSort || null; - + : globalSort || ctx.service.params?.[0]?.sort; ctx.service.run({ ...ctx.service.params?.[0], page: current, pageSize, sort }); }, };