We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hey there, still me!
I'd like to sort an object by keys, but it is only supported for arrays as of now:
// @keep-sorted {"keys":["label"]} export default <Record<Enum, { icon: string; label: string }>>{ ANALYTICS: { icon: 'chart-mixed', label: 'Analytics' }, EVENT_MANAGEMENT: { icon: 'calendar-days', label: 'Calendar' }, CLOUD_STORAGE: { icon: 'sensor-cloud', label: 'Cloud' }, HEALTH: { icon: 'house-medical', label: 'Health' }, };
[keep-sorted] error: Only arrays can be sorted by keys, but got ObjectExpression
—
No response
Thanks for your help!
(Can you guess which command I use the most? Is it OCD? 👀)
The text was updated successfully, but these errors were encountered:
PR welcome :)
Sorry, something went wrong.
No branches or pull requests
Clear and concise description of the problem
Hey there, still me!
I'd like to sort an object by keys, but it is only supported for arrays as of now:
[keep-sorted] error: Only arrays can be sorted by keys, but got ObjectExpression
Suggested solution
—
Alternative
No response
Additional context
Thanks for your help!
(Can you guess which command I use the most? Is it OCD? 👀)
Validations
The text was updated successfully, but these errors were encountered: