Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding support to sort Component List #78

Closed
sagarchoudhary96 opened this issue Sep 15, 2023 · 3 comments
Closed

Adding support to sort Component List #78

sagarchoudhary96 opened this issue Sep 15, 2023 · 3 comments

Comments

@sagarchoudhary96
Copy link
Contributor

Current the puck Editor renders the Components List by map Object.keys(config.components). it will be great if we can have ability to control the order of rendering this List.

@chrisvxd
Copy link
Member

Hi @sagarchoudhary96! Object.keys() respects the order of keys in the object, so you can sort your components by reordering the keys in components.

@chrisvxd
Copy link
Member

Have closed the issue, but let me know if that's not working or if there's something else you're trying to achieve.

@sagarchoudhary96
Copy link
Contributor Author

Thanks, Works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants