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

Add the ability to sort classes in the result list #2

Open
svyatov opened this issue Mar 4, 2024 · 0 comments
Open

Add the ability to sort classes in the result list #2

svyatov opened this issue Mar 4, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@svyatov
Copy link
Owner

svyatov commented Mar 4, 2024

Currently, the result order depends on the argument structure. It should be trivial to add a sort option, which might be helpful, for example, in tests.

The easiest way is to introduce a new helper because it's hard to pass an argument to the current helper, given that we treat all the arguments as input for the helper.

So...

clsx -> no change
clsxs -> new helper (s suffix stands for 'sorted')
cn -> no change
cns -> new alias for clsxs (again, s stands for 'sorted')

@svyatov svyatov added enhancement New feature or request good first issue Good for newcomers labels Mar 4, 2024
@svyatov svyatov self-assigned this Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant