From 7044363e12faeebb68c20a40bb9634917a137e55 Mon Sep 17 00:00:00 2001 From: Rohit Garg <42495927+gargroh@users.noreply.github.com> Date: Mon, 20 Jul 2020 21:42:16 +0530 Subject: [PATCH] fix: Enforce `useColumnOrder` to be used before useGroupBy (#2553) so that column order change done by grouping is applicable..on top of ordering done by useColumnOrder --- src/plugin-hooks/useGroupBy.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugin-hooks/useGroupBy.js b/src/plugin-hooks/useGroupBy.js index a3469681ef..cf196d60b1 100755 --- a/src/plugin-hooks/useGroupBy.js +++ b/src/plugin-hooks/useGroupBy.js @@ -136,8 +136,8 @@ function useInstance(instance) { getHooks, } = instance - ensurePluginOrder(plugins, ['useFilters'], 'useGroupBy') - + ensurePluginOrder(plugins, ['useColumnOrder', 'useFilters'], 'useGroupBy') + const getInstance = useGetLatest(instance) allColumns.forEach(column => {