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

Reverse Sorting Order #32

Open
sairus2k opened this issue Feb 4, 2025 · 0 comments
Open

Reverse Sorting Order #32

sairus2k opened this issue Feb 4, 2025 · 0 comments

Comments

@sairus2k
Copy link

sairus2k commented Feb 4, 2025

Currently, sprites and icon types are sorted in reverse order, which is inconvenient. For example, TypeScript suggestions also show them in reverse order, which is quite annoying. Seams it came from the glob library. Additionally, the glob library is quite bloated, and it would be good to replace it with a lighter alternative as suggested here: https://github.com/es-tooling/module-replacements/blob/main/docs/modules/glob.md

I would prefer to use node's fs.globSync — as it's a zero-dependency solution, but it requires Node.js 22 (https://nodejs.org/api/fs.html#fsglobsyncpattern-options). Alternatively, we can use https://github.com/thecodrr/fdir. I've tested it, and it provides correct sorting order.

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

1 participant