Skip to content

Use columnOrder and initialize it, then the group column is always at the end #4872

Description

@Shen120

Describe the bug

When columns have a group column and the group column is in a non final position, and then initialize the columnOrder, you will find that the group column is always in the last position, even if you change the position of the group column;
like this demo

Your minimal, reproducible example

https://codesandbox.io/p/sandbox/falling-lake-cu3vtg

Steps to reproduce

Open the link to see

Expected behavior

The group column can be displayed in its normal position

How often does this bug happen?

Every time

Screenshots or Videos

No response

Platform

Windows - Chrome@latest

react-table version

v8.9.1

TypeScript version

No response

Additional context

No response

Terms & Code of Conduct

  • I agree to follow this project's Code of Conduct
  • I understand that if my bug cannot be reliable reproduced in a debuggable environment, it will probably not be fixed and this issue may even be closed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions