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

CB-5926 refactor: sort settings by translation #3088

Closed
wants to merge 1 commit into from

Conversation

SychevAndrey
Copy link
Contributor

No description provided.

@SychevAndrey SychevAndrey self-assigned this Nov 20, 2024
Comment on lines -30 to +37
.sort((a, b) => a.name.localeCompare(b.name));
.sort((a, b) => {
if (a.type === b.type) {
return translate(a.name).localeCompare(translate(b.name));
} else {
return a.type - b.type;
}
});
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm really not sure that we need to group settings by type because it can look better in a small amount of settings but will be unreadable with many

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

Successfully merging this pull request may close these issues.

2 participants